From e1f6aa6d32e1d1952a63d94dae321c7bd4fb7e1b Mon Sep 17 00:00:00 2001 From: Vishnu Vardhan V Date: Wed, 6 May 2015 09:17:47 +0530 Subject: [PATCH] Reladted-Bug:#1451785 When the srcIP/destIp matches with the default gateway or DNS server then we are not showing any path in UI,now we will display a link to vRouter and back to the same VM to handle this case need to send the nodeIP to webserver Change-Id: Iaa90d4232065d2265cf7540f1da1d72bb5eff706 --- webroot/js/analyzer-utils.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webroot/js/analyzer-utils.js b/webroot/js/analyzer-utils.js index 044d2ec72..9ce5aa51c 100644 --- a/webroot/js/analyzer-utils.js +++ b/webroot/js/analyzer-utils.js @@ -586,7 +586,13 @@ function showUnderlayPaths(data) { params.sport = data.sport; params.dport = data.dport; params.protocol = data.protocol; - params.direction = (data.direction_ing === 0) ? "egress" : "ingress"; + if(data.direction_ing === 0) { + params.direction = 'egress'; + params.nodeIp = data.other_vrouter_ip; + } else { + params.direction = 'ingress'; + params.nodeIp = data.vrouter_ip; + } if(data.hasOwnProperty('startTime') && data.hasOwnProperty('endTime')) { params['startTime'] = data['startTime']; params['endTime'] = data['endTime'];