rohityadavcloud commented on code in PR #6426:
URL: https://github.com/apache/cloudstack/pull/6426#discussion_r994220129
##########
ui/src/views/network/CreateSharedNetworkForm.vue:
##########
@@ -591,6 +633,30 @@ export default {
isValidTextValueForKey (obj, key) {
return this.isValidValueForKey(obj, key) && String(obj[key]).length > 0
},
+ allowSettingMTU () {
+ api('listConfigurations', {
+ name: 'allow.end.users.to.specify.vm.mtu',
+ zoneid: this.selectedZone.id
+ }).then(json => {
+ this.setMTU =
json?.listconfigurationsresponse?.configuration[0]?.value === 'true'
Review Comment:
cc this seems to be an issue in the UI; if listConfigurations can't be
called by normal accounts, we need this to be passed/discoverd in the UI in
some other way (a new API or extend the listCapabilities API). cc @NuxRo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]