hostlist/portlist
This commit is contained in:
parent
e59b841577
commit
c96e0382c8
|
@ -24,5 +24,5 @@ export interface Host {
|
||||||
discoveredDate?: Date;
|
discoveredDate?: Date;
|
||||||
|
|
||||||
zone?: Zone;
|
zone?: Zone;
|
||||||
// portList?: Port[];
|
portList?: any[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,5 @@ export interface Zone {
|
||||||
discoveredBy?: string[];
|
discoveredBy?: string[];
|
||||||
discoveredDate?: Date;
|
discoveredDate?: Date;
|
||||||
|
|
||||||
// hostList?: Host[];
|
hostList?: any[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,28 +250,28 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
console.log(node);
|
console.log(node);
|
||||||
this.displaySidebar = true;
|
this.displaySidebar = true;
|
||||||
|
|
||||||
// switch (node.group) {
|
switch (node.group) {
|
||||||
// case 'zone':
|
case 'zone':
|
||||||
// var zone: Zone = node.target;
|
var zone: Zone = node.target;
|
||||||
// zone.hostList = [];
|
zone.hostList = [];
|
||||||
// this.hosts.forEach(host => {
|
this.hosts.forEach(host => {
|
||||||
// if (host.zone.network === zone.network) {
|
if (host.zone.network === zone.network) {
|
||||||
// zone.hostList.push(host);
|
zone.hostList.push(host);
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// break;
|
break;
|
||||||
// case 'host':
|
case 'host':
|
||||||
// var host: Host = node.target;
|
var host: Host = node.target;
|
||||||
// host.portList = [];
|
host.portList = [];
|
||||||
// this.ports.forEach(port => {
|
this.ports.forEach(port => {
|
||||||
// if (port.host.address === host.address) {
|
if (port.host.address === host.address) {
|
||||||
// host.portList.push(port);
|
host.portList.push(port);
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// break;
|
break;
|
||||||
// default:
|
default:
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
this.selectedNode = node;
|
this.selectedNode = node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user