mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-14 08:49:50 +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[] = [];
|
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() {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user