Skip to content

Commit 76cfcb4

Browse files
Merge branch '4.20'
2 parents 8497f70 + 96ed9d4 commit 76cfcb4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ public LibvirtVMDef.InterfaceDef plug(NicTO nic, String guestOsType, String nicA
254254
intf.defBridgeNet(_bridges.get("private"), null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
255255
} else if (nic.getType() == Networks.TrafficType.Storage) {
256256
String storageBrName = nic.getName() == null ? _bridges.get("private") : nic.getName();
257+
if (nic.getBroadcastType() == Networks.BroadcastDomainType.Storage) {
258+
vNetId = Networks.BroadcastDomainType.getValue(nic.getBroadcastUri());
259+
protocol = Networks.BroadcastDomainType.Vlan.scheme();
260+
}
261+
if (isValidProtocolAndVnetId(vNetId, protocol)) {
262+
logger.debug(String.format("creating a vNet dev and bridge for %s traffic per traffic label %s",
263+
Networks.TrafficType.Storage.name(), trafficLabel));
264+
storageBrName = createVnetBr(vNetId, storageBrName, protocol);
265+
}
257266
intf.defBridgeNet(storageBrName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
258267
}
259268
if (nic.getPxeDisable()) {

ui/src/views/compute/CreateAutoScaleVmGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@
737737
{{ $t('label.isadvanced') }}
738738
<a-switch v-model:checked="showDetails" style="margin-left: 10px"/>
739739
</span>
740-
<div style="margin-top: 15px" v-show="showDetails">
740+
<div style="margin-top: 15px" v-if="showDetails">
741741
<a-form-item :label="$t('label.sshkeypairs')">
742742
<ssh-key-pair-selection
743743
:items="options.sshKeyPairs"

ui/src/views/infra/network/IpRangesTabStorage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default {
166166
},
167167
{
168168
title: this.$t('label.vlan'),
169-
dataIndex: 'vlanid'
169+
dataIndex: 'vlan'
170170
},
171171
{
172172
title: this.$t('label.startip'),

0 commit comments

Comments
 (0)