111111 </a-form-item >
112112 </a-col >
113113 </a-row >
114+ <a-row :gutter =" 12" >
115+ <a-col :md =" 12" :lg =" 12" >
116+ <a-form-item name =" specifyipranges" ref =" specifyipranges" v-if =" guestType === 'isolated'" >
117+ <template #label >
118+ <tooltip-label :title =" $t('label.specifyipranges')" :tooltip =" apiParams.specifyipranges.description" />
119+ </template >
120+ <a-switch v-model:checked =" form.specifyipranges" />
121+ </a-form-item >
122+ </a-col >
123+ </a-row >
114124 <a-row :gutter =" 12" >
115125 <a-col :md =" 12" :lg =" 12" >
116126 <a-form-item name =" forvpc" ref =" forvpc" v-if =" guestType === 'isolated'" >
@@ -681,7 +691,8 @@ export default {
681691 isolation: ' dedicated' ,
682692 conservemode: true ,
683693 availability: ' optional' ,
684- egressdefaultpolicy: ' deny' ,
694+ specifyipranges: false ,
695+ egressdefaultpolicy: ' allow' ,
685696 ispublic: this .isPublic ,
686697 nsxsupportlb: true ,
687698 routingmode: ' static'
@@ -1043,7 +1054,7 @@ export default {
10431054
10441055 var keys = Object .keys (values)
10451056 const detailsKey = [' promiscuousmode' , ' macaddresschanges' , ' forgedtransmits' , ' maclearning' ]
1046- const ignoredKeys = [... detailsKey, ' state' , ' status' , ' allocationstate' , ' forvpc' , ' lbType' , ' specifyvlan' , ' ispublic' , ' domainid' , ' zoneid' , ' egressdefaultpolicy' , ' isolation' , ' supportspublicaccess' ]
1057+ const ignoredKeys = [... detailsKey, ' state' , ' status' , ' allocationstate' , ' forvpc' , ' lbType' , ' specifyvlan' , ' ispublic' , ' domainid' , ' zoneid' , ' egressdefaultpolicy' , ' isolation' , ' supportspublicaccess' , ' specifyipranges ' ]
10471058 keys .forEach (function (key , keyIndex ) {
10481059 if (! ignoredKeys .includes (key) &&
10491060 values[key] != null && values[key] !== undefined &&
@@ -1062,6 +1073,9 @@ export default {
10621073 if (values .specifyvlan === true ) {
10631074 params .specifyvlan = true
10641075 }
1076+
1077+ params .specifyipranges = values .specifyipranges
1078+
10651079 if (values .ispersistent ) {
10661080 params .ispersistent = true
10671081 } else { // Isolated Network with Non-persistent network
@@ -1078,6 +1092,7 @@ export default {
10781092 }
10791093 // Conserve mode is irrelevant on L2 network offerings as there are no resources to conserve, do not pass it, true by default on server side
10801094 delete params .conservemode
1095+ delete params .specifyipranges
10811096 }
10821097
10831098 if (values .forvpc === true ) {
0 commit comments