CLOUDSTACK-6732: Fix:[OVS][UI] Network Service Providers page displays two ovs providers

This commit is contained in:
Gabor Apati-Nagy 2014-05-29 15:02:29 +01:00 committed by Jessica Wang
parent 80ef915fd5
commit 5c36fe84b6

View File

@ -6177,7 +6177,7 @@
args.response.success({
actionFilter: virtualRouterProviderActionFilter,
data: $.extend(nspMap[ "Ovs"], {
supportedServices: nspMap[ "Ovs"].servicelist.join(', ')
supportedServices: nspMap["Ovs"] == undefined? "": nspMap["Ovs"].servicelist.join(', ')
})
});
}
@ -19444,11 +19444,14 @@
});
}
if ($.grep(nspHardcodingArray, function(e) { return e.id == 'Ovs'; }).length == 0 ) {
nspHardcodingArray.push({
id: 'OVS',
name: 'OVS',
id: 'Ovs',
name: 'Ovs',
state: nspMap.Ovs ? nspMap.Ovs.state : 'Disabled'
});
}
};
cloudStack.actionFilter.physicalNetwork = function (args) {