fix: set az as optional when create network
set the az selector as an optional select when create a network Closes-Bug: #2035012 Change-Id: Ica30d2b71ad3ef38430c0d862f4d0eab56b6b125
This commit is contained in:
parent
dc07a3506d
commit
b1f8c82010
@ -175,10 +175,13 @@ export class CreateNetwork extends ModalAction {
|
|||||||
const networkCommonData = {
|
const networkCommonData = {
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
availability_zone_hints: [availableZone],
|
|
||||||
port_security_enabled,
|
port_security_enabled,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (availableZone) {
|
||||||
|
networkCommonData.availability_zone_hints = [availableZone];
|
||||||
|
}
|
||||||
|
|
||||||
if (mtu) {
|
if (mtu) {
|
||||||
networkCommonData.mtu = mtu;
|
networkCommonData.mtu = mtu;
|
||||||
}
|
}
|
||||||
@ -374,7 +377,6 @@ export class CreateNetwork extends ModalAction {
|
|||||||
label: t('Available Zone'),
|
label: t('Available Zone'),
|
||||||
type: 'select',
|
type: 'select',
|
||||||
placeholder: t('Please select'),
|
placeholder: t('Please select'),
|
||||||
required: true,
|
|
||||||
options: this.availableZones,
|
options: this.availableZones,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user