Skip to content

Commit

Permalink
Merge "Added Map in Client Side to show proper text instead of value …
Browse files Browse the repository at this point in the history
…for Encapsulation Priorties in landing page"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 17, 2015
2 parents b29f515 + fa24416 commit 905b78e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ function setEditPopupData() {
function populateData(result) {
var vxLanIdentifierModeLabels = ["Auto Configured", "User Configured"];
var vxLanIdentifierModeValues = ["automatic", "configured"];
var encapsulationMap = {"MPLSoGRE":"MPLS Over GRE", "MPLSoUDP":"MPLS Over UDP", "VXLAN":"VxLAN"};
var gridDS = [];
var priorities;
$("#epTuples").html("");
Expand Down Expand Up @@ -442,7 +443,7 @@ function populateData(result) {
actPriorities = priorities;
var gridPriorities = [];
for(var i = 0; i < priorities.length; i++) {
gridPriorities.push(priorities[i]);
gridPriorities.push(encapsulationMap[priorities[i]]);
}
gridDS.push({'property' : 'Encapsulation Priority Order',
'value' : gridPriorities});
Expand Down

0 comments on commit 905b78e

Please sign in to comment.