From 6ccddac32c136640e7b8f0e336d89de248d935d5 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 19 May 2024 00:44:53 +0700 Subject: [PATCH] Add missing categories for Dynamips IOS router templates --- .../ios-template-details.component.ts | 2 ++ src/app/services/ios-configuration.service.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.ts b/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.ts index 0c89d5b6..4e32cdf7 100644 --- a/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.ts +++ b/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.ts @@ -22,6 +22,7 @@ export class IosTemplateDetailsComponent implements OnInit { networkAdaptersForTemplate: string[] = []; platforms: string[] = []; consoleTypes: string[] = []; + categories = []; platformsWithEtherSwitchRouterOption = {}; platformsWithChassis = {}; chassis = {}; @@ -93,6 +94,7 @@ export class IosTemplateDetailsComponent implements OnInit { this.chassis = this.iosConfigurationService.getChassis(); this.defaultRam = this.iosConfigurationService.getDefaultRamSettings(); this.consoleTypes = this.iosConfigurationService.getConsoleTypes(); + this.categories = this.iosConfigurationService.getCategories(); } fillAdaptersData() { diff --git a/src/app/services/ios-configuration.service.ts b/src/app/services/ios-configuration.service.ts index 8b048980..145cf924 100644 --- a/src/app/services/ios-configuration.service.ts +++ b/src/app/services/ios-configuration.service.ts @@ -16,6 +16,18 @@ export class IosConfigurationService { return ['telnet', 'none']; } + getCategories() { + let categories = [ + ['Default', 'guest'], + ['Routers', 'router'], + ['Switches', 'switch'], + ['End devices', 'guest'], + ['Security devices', 'firewall'], + ]; + + return categories; + } + getDefaultRamSettings() { return { c1700: 160,