From 82ec1a12902b1b1cd94a3decd58618ad5bf1fb97 Mon Sep 17 00:00:00 2001 From: Vishnu Vardhan V Date: Sun, 12 Apr 2015 18:46:33 +0530 Subject: [PATCH] Related-Bug:#1443460 Setting the map flow response,which will be used for deciding the arrow head position in trace flow Change-Id: Iad314c761d449913112718c10aff18325a9e215b --- webroot/css/contrail.custom.css | 5 +++++ webroot/js/analyzer-utils.js | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/webroot/css/contrail.custom.css b/webroot/css/contrail.custom.css index e56d64f24..af084fd8d 100644 --- a/webroot/css/contrail.custom.css +++ b/webroot/css/contrail.custom.css @@ -2768,6 +2768,11 @@ color: #b94a48; stroke:#85b9dd!important; stroke-width:3; } +.connection-wrap-down { + fill: none; + stroke:#85b9dd!important; + stroke-width:3; +} .display-nonodes{ margin:15%; font-weight:bold; diff --git a/webroot/js/analyzer-utils.js b/webroot/js/analyzer-utils.js index 9ce5aa51c..7fd905317 100644 --- a/webroot/js/analyzer-utils.js +++ b/webroot/js/analyzer-utils.js @@ -614,7 +614,10 @@ function showUnderlayPaths(data) { data : {data: params}, callback : function(response) { $("#network_topology").find('.topology-visualization-loading').hide(); - underlayRenderer.getView().highlightPath(response, {data: params}); + if(typeof underlayRenderer === 'object') { + underlayRenderer.getModel().setFlowPath(response); + underlayRenderer.getView().highlightPath(response, {data: params}); + } }, failureCallback: function(err) { $("#network_topology").find('.topology-visualization-loading').hide();