Add missing categories for Dynamips IOS router templates

This commit is contained in:
grossmj 2024-05-19 00:44:53 +07:00
parent 9447622e1f
commit 6ccddac32c
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export class IosTemplateDetailsComponent implements OnInit {
networkAdaptersForTemplate: string[] = []; networkAdaptersForTemplate: string[] = [];
platforms: string[] = []; platforms: string[] = [];
consoleTypes: string[] = []; consoleTypes: string[] = [];
categories = [];
platformsWithEtherSwitchRouterOption = {}; platformsWithEtherSwitchRouterOption = {};
platformsWithChassis = {}; platformsWithChassis = {};
chassis = {}; chassis = {};
@ -93,6 +94,7 @@ export class IosTemplateDetailsComponent implements OnInit {
this.chassis = this.iosConfigurationService.getChassis(); this.chassis = this.iosConfigurationService.getChassis();
this.defaultRam = this.iosConfigurationService.getDefaultRamSettings(); this.defaultRam = this.iosConfigurationService.getDefaultRamSettings();
this.consoleTypes = this.iosConfigurationService.getConsoleTypes(); this.consoleTypes = this.iosConfigurationService.getConsoleTypes();
this.categories = this.iosConfigurationService.getCategories();
} }
fillAdaptersData() { fillAdaptersData() {

View File

@ -16,6 +16,18 @@ export class IosConfigurationService {
return ['telnet', 'none']; return ['telnet', 'none'];
} }
getCategories() {
let categories = [
['Default', 'guest'],
['Routers', 'router'],
['Switches', 'switch'],
['End devices', 'guest'],
['Security devices', 'firewall'],
];
return categories;
}
getDefaultRamSettings() { getDefaultRamSettings() {
return { return {
c1700: 160, c1700: 160,