diff --git a/ui/scripts/network.js b/ui/scripts/network.js index c53150d5ac2..7d2345a1897 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -933,6 +933,11 @@ label: 'label.network.offering', isEditable: true, select: function(args){ + if (args.context.networks[0].type == 'Shared') { //Shared network is not allowed to upgrade to a different network offering + args.response.success({ data: [] }); + return; + } + if (args.context.networks[0].state == 'Destroyed') { args.response.success({ data: [] }); return; diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js index b6b3ef817f6..f1b7efaa621 100644 --- a/ui/scripts/sharedFunctions.js +++ b/ui/scripts/sharedFunctions.js @@ -266,7 +266,7 @@ cloudStack.actionFilter = { var allowedActions = []; if(jsonObj.type == 'Isolated') { - allowedActions.push('edit'); //only Isolated network can be upgraded + allowedActions.push('edit'); //only Isolated network is allowed to upgrade to a different network offering (Shared network is not allowed to) allowedActions.push('restart'); allowedActions.push('remove'); }