Skip to content

Commit 96ed9d4

Browse files
Merge branch '4.19' into 4.20
2 parents be08fff + 7506a54 commit 96ed9d4

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
@@ -250,6 +250,15 @@ public LibvirtVMDef.InterfaceDef plug(NicTO nic, String guestOsType, String nicA
250250
intf.defBridgeNet(_bridges.get("private"), null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
251251
} else if (nic.getType() == Networks.TrafficType.Storage) {
252252
String storageBrName = nic.getName() == null ? _bridges.get("private") : nic.getName();
253+
if (nic.getBroadcastType() == Networks.BroadcastDomainType.Storage) {
254+
vNetId = Networks.BroadcastDomainType.getValue(nic.getBroadcastUri());
255+
protocol = Networks.BroadcastDomainType.Vlan.scheme();
256+
}
257+
if (isValidProtocolAndVnetId(vNetId, protocol)) {
258+
s_logger.debug(String.format("creating a vNet dev and bridge for %s traffic per traffic label %s",
259+
Networks.TrafficType.Storage.name(), trafficLabel));
260+
storageBrName = createVnetBr(vNetId, storageBrName, protocol);
261+
}
253262
intf.defBridgeNet(storageBrName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
254263
}
255264
if (nic.getPxeDisable()) {

ui/src/views/compute/CreateAutoScaleVmGroup.vue

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