mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-14 00:39:48 +00:00
Add missing categories for Dynamips IOS router templates
This commit is contained in:
parent
9447622e1f
commit
6ccddac32c
@ -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() {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user