Merge branch '4.19' into 4.20

This commit is contained in:
Daan Hoogland 2025-05-01 09:36:14 +02:00
commit 01d87b7747
4 changed files with 13 additions and 5 deletions

View File

@ -41,7 +41,7 @@ class networkConfig:
return devs
@staticmethod
def getDefaultNetwork():
cmd = bash("route -n|awk \'/^0.0.0.0/ {print $2,$8}\'")
cmd = bash("ip route show default | awk \'{print $3,$5}\'")
if not cmd.isSuccess():
logging.debug("Failed to get default route")
raise CloudRuntimeException("Failed to get default route")

View File

@ -185,7 +185,6 @@ export default {
isdynamicallyscalable: this.resource.isdynamicallyscalable,
deleteprotection: this.resource.deleteprotection,
group: this.resource.group,
securitygroupids: this.resource.securitygroup.map(x => x.id),
userdata: '',
haenable: this.resource.haenable
})

View File

@ -88,6 +88,15 @@
<a-switch v-model:checked="form.directdownload"/>
</a-form-item>
<a-form-item ref="checksum" name="checksum">
<template #label>
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>
</template>
<a-input
v-model:value="form.checksum"
:placeholder="apiParams.checksum.description" />
</a-form-item>
<a-form-item ref="zoneid" name="zoneid">
<template #label>
<tooltip-label :title="$t('label.zoneid')" :tooltip="apiParams.zoneid.description"/>

View File

@ -214,8 +214,8 @@
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
<a-col :md="24" :lg="12">
<a-row :gutter="12">
<a-col :md="24" :lg="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
<a-form-item ref="directdownload" name="directdownload">
<template #label>
<tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/>
@ -223,7 +223,7 @@
<a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" />
</a-form-item>
</a-col>
<a-col :md="24" :lg="12" v-if="allowDirectDownload">
<a-col :md="24" :lg="12">
<a-form-item ref="checksum" name="checksum">
<template #label>
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>