File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def listNetworks():
4141 return devs
4242 @staticmethod
4343 def getDefaultNetwork ():
44- cmd = bash ("route -n| awk \' /^0.0.0.0/ {print $2,$8 }\' " )
44+ cmd = bash ("ip route show default | awk \' {print $3,$5 }\' " )
4545 if not cmd .isSuccess ():
4646 logging .debug ("Failed to get default route" )
4747 raise CloudRuntimeException ("Failed to get default route" )
Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ export default {
185185 isdynamicallyscalable: this .resource .isdynamicallyscalable ,
186186 deleteprotection: this .resource .deleteprotection ,
187187 group: this .resource .group ,
188- securitygroupids: this .resource .securitygroup .map (x => x .id ),
189188 userdata: ' ' ,
190189 haenable: this .resource .haenable
191190 })
Original file line number Diff line number Diff line change 8888 <a-switch v-model:checked =" form.directdownload" />
8989 </a-form-item >
9090
91+ <a-form-item ref =" checksum" name =" checksum" >
92+ <template #label >
93+ <tooltip-label :title =" $t('label.checksum')" :tooltip =" apiParams.checksum.description" />
94+ </template >
95+ <a-input
96+ v-model:value =" form.checksum"
97+ :placeholder =" apiParams.checksum.description" />
98+ </a-form-item >
99+
91100 <a-form-item ref =" zoneid" name =" zoneid" >
92101 <template #label >
93102 <tooltip-label :title =" $t('label.zoneid')" :tooltip =" apiParams.zoneid.description" />
Original file line number Diff line number Diff line change 214214 </a-form-item >
215215 </a-col >
216216 </a-row >
217- <a-row :gutter =" 12" v-if = " (hyperKVMShow || hyperCustomShow) && currentForm === 'Create' " >
218- <a-col :md =" 24" :lg =" 12" >
217+ <a-row :gutter =" 12" >
218+ <a-col :md =" 24" :lg =" 12" v-if = " (hyperKVMShow || hyperCustomShow) && currentForm === 'Create' " >
219219 <a-form-item ref =" directdownload" name =" directdownload" >
220220 <template #label >
221221 <tooltip-label :title =" $t('label.directdownload')" :tooltip =" apiParams.directdownload.description" />
222222 </template >
223223 <a-switch v-model:checked =" form.directdownload" @change =" handleChangeDirect" />
224224 </a-form-item >
225225 </a-col >
226- <a-col :md =" 24" :lg =" 12" v-if = " allowDirectDownload " >
226+ <a-col :md =" 24" :lg =" 12" >
227227 <a-form-item ref =" checksum" name =" checksum" >
228228 <template #label >
229229 <tooltip-label :title =" $t('label.checksum')" :tooltip =" apiParams.checksum.description" />
You can’t perform that action at this time.
0 commit comments