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[] = [];
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() {

View File

@ -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,