Skip to content

Commit 8819ec6

Browse files
author
Jessica Wang
committed
CLOUDSTACK-571: cloudstack UI - network menu - guest network section - network detailView - edit action - network offering upgrade is not allowed in Shared network.
1 parent 4b539dd commit 8819ec6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎ui/scripts/network.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,11 @@
933933
label: 'label.network.offering',
934934
isEditable: true,
935935
select: function(args){
936+
if (args.context.networks[0].type == 'Shared') { //Shared network is not allowed to upgrade to a different network offering
937+
args.response.success({ data: [] });
938+
return;
939+
}
940+
936941
if (args.context.networks[0].state == 'Destroyed') {
937942
args.response.success({ data: [] });
938943
return;

‎ui/scripts/sharedFunctions.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ cloudStack.actionFilter = {
266266
var allowedActions = [];
267267

268268
if(jsonObj.type == 'Isolated') {
269-
allowedActions.push('edit'); //only Isolated network can be upgraded
269+
allowedActions.push('edit'); //only Isolated network is allowed to upgrade to a different network offering (Shared network is not allowed to)
270270
allowedActions.push('restart');
271271
allowedActions.push('remove');
272272
}

0 commit comments

Comments
 (0)