diff --git a/src/app/cartography/converters/map/map-node-to-node-converter.ts b/src/app/cartography/converters/map/map-node-to-node-converter.ts index 072bfee2..ca05acd1 100644 --- a/src/app/cartography/converters/map/map-node-to-node-converter.ts +++ b/src/app/cartography/converters/map/map-node-to-node-converter.ts @@ -27,6 +27,7 @@ export class MapNodeToNodeConverter implements Converter { node.port_name_format = mapNode.portNameFormat; node.port_segment_size = mapNode.portSegmentSize; node.ports = mapNode.ports ? mapNode.ports.map((mapPort) => this.mapPortToPort.convert(mapPort)) : []; + node.properties = mapNode.properties; node.project_id = mapNode.projectId; node.status = mapNode.status; node.symbol = mapNode.symbol; diff --git a/src/app/cartography/converters/map/node-to-map-node-converter.ts b/src/app/cartography/converters/map/node-to-map-node-converter.ts index b31e4b84..391f7032 100644 --- a/src/app/cartography/converters/map/node-to-map-node-converter.ts +++ b/src/app/cartography/converters/map/node-to-map-node-converter.ts @@ -38,6 +38,7 @@ export class NodeToMapNodeConverter implements Converter { mapNode.portNameFormat = node.port_name_format; mapNode.portSegmentSize = node.port_segment_size; mapNode.ports = node.ports ? node.ports.map((port) => this.portToMapPort.convert(port)) : []; + mapNode.properties = node.properties; mapNode.projectId = node.project_id; mapNode.status = node.status; mapNode.symbol = node.symbol; diff --git a/src/app/cartography/models/map/map-node.ts b/src/app/cartography/models/map/map-node.ts index 7c0b282e..3d7c594d 100644 --- a/src/app/cartography/models/map/map-node.ts +++ b/src/app/cartography/models/map/map-node.ts @@ -1,6 +1,7 @@ import { Indexed } from '../../datasources/map-datasource'; import { MapLabel } from './map-label'; import { MapPort } from './map-port'; +import { Properties } from '../node'; export class MapNode implements Indexed { id: string; @@ -19,6 +20,7 @@ export class MapNode implements Indexed { portNameFormat: string; portSegmentSize: number; ports: MapPort[]; + properties: Properties; projectId: string; status: string; symbol: string; diff --git a/src/app/cartography/models/node.ts b/src/app/cartography/models/node.ts index bad991c8..2555a4a6 100644 --- a/src/app/cartography/models/node.ts +++ b/src/app/cartography/models/node.ts @@ -18,6 +18,7 @@ export class Properties { aux_type: boolean; ram: number; system_id: string; + dynamips_id?: number; npe?: string; midplane?: string; nvram: number; diff --git a/src/app/components/project-map/context-menu/actions/import-config/import-config-action.component.html b/src/app/components/project-map/context-menu/actions/import-config/import-config-action.component.html index 76bef675..dcd6149f 100644 --- a/src/app/components/project-map/context-menu/actions/import-config/import-config-action.component.html +++ b/src/app/components/project-map/context-menu/actions/import-config/import-config-action.component.html @@ -1,4 +1,4 @@ - +