mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-4793: UI > Infrastructure > Virtual Routers > detail tab > add Version field which will include text "Requires Upgrade" if VR version is different from MS version.
This commit is contained in:
parent
c61d2eedf4
commit
ac04a9f2e1
@ -7688,6 +7688,9 @@
|
||||
state: {
|
||||
label: 'label.state'
|
||||
},
|
||||
version: {
|
||||
label: 'label.version'
|
||||
},
|
||||
guestnetworkid: {
|
||||
label: 'label.network.id'
|
||||
},
|
||||
@ -16435,12 +16438,20 @@
|
||||
}
|
||||
|
||||
var addExtraPropertiesToRouterInstanceObject = function(jsonObj) {
|
||||
if (jsonObj.isredundantrouter == true)
|
||||
if (jsonObj.isredundantrouter == true) {
|
||||
jsonObj["redundantRouterState"] = jsonObj.redundantstate;
|
||||
else
|
||||
} else {
|
||||
jsonObj["redundantRouterState"] = "";
|
||||
}
|
||||
|
||||
//jsonObj.version = '4.2.0-SNAPSHOT'; //for testing only
|
||||
if (jsonObj.version != undefined && jsonObj.version.length > 0) {
|
||||
if (jsonObj.version != g_cloudstackversion) { //if VirtualRouter version is different from management server version
|
||||
jsonObj.version += " (Requires Upgrade)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var refreshNspData = function(nspName) {
|
||||
var array1 = [];
|
||||
if (nspName != null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user