Skip to content

Commit 01d87b7

Browse files
author
Daan Hoogland
committed
Merge branch '4.19' into 4.20
2 parents fe77f5f + 4c072b5 commit 01d87b7

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

python/lib/cloudutils/networkConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

ui/src/views/compute/EditVM.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
})

ui/src/views/image/RegisterOrUploadIso.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@
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"/>

ui/src/views/image/RegisterOrUploadTemplate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,16 @@
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"/>

0 commit comments

Comments
 (0)