From 81c98724b43f85b31e8074cdba955b97db78f0dd Mon Sep 17 00:00:00 2001 From: Maxime Dufour Date: Tue, 14 Mar 2023 14:59:54 +0000 Subject: [PATCH] Add VGW to the Net Graph --- src/network/networkview.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/network/networkview.ts b/src/network/networkview.ts index 7cd016a..81786ef 100644 --- a/src/network/networkview.ts +++ b/src/network/networkview.ts @@ -343,6 +343,25 @@ async function retrieveData(): Promise { }); }); + // VGW + net.virtualGateways.forEach((vgw) => { + if (typeof vgw.virtualGatewayId === 'undefined') { + return undefined; + } + + data.push({ + data: { + id: vgw.virtualGatewayId, + label: vgw.virtualGatewayId, + img: 'design/VirtualPrivateGateway@2x.png', + showDetails: true, + resourceId: vgw.virtualGatewayId, + type: 'VirtualGateway' + }, + group: 'nodes' + }); + }); + return data;