mirror of https://github.com/apache/cloudstack.git
kvm, ui: fix interface when using vlan subnet for storage traffic type (#11245)
* kvm, ui: fix interface when using vlan subnet for storage traffic type Fixes #7816 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
fd4223295a
commit
7506a547af
|
|
@ -252,6 +252,15 @@ public class BridgeVifDriver extends VifDriverBase {
|
||||||
intf.defBridgeNet(_bridges.get("private"), null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
|
intf.defBridgeNet(_bridges.get("private"), null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
|
||||||
} else if (nic.getType() == Networks.TrafficType.Storage) {
|
} else if (nic.getType() == Networks.TrafficType.Storage) {
|
||||||
String storageBrName = nic.getName() == null ? _bridges.get("private") : nic.getName();
|
String storageBrName = nic.getName() == null ? _bridges.get("private") : nic.getName();
|
||||||
|
if (nic.getBroadcastType() == Networks.BroadcastDomainType.Storage) {
|
||||||
|
vNetId = Networks.BroadcastDomainType.getValue(nic.getBroadcastUri());
|
||||||
|
protocol = Networks.BroadcastDomainType.Vlan.scheme();
|
||||||
|
}
|
||||||
|
if (isValidProtocolAndVnetId(vNetId, protocol)) {
|
||||||
|
s_logger.debug(String.format("creating a vNet dev and bridge for %s traffic per traffic label %s",
|
||||||
|
Networks.TrafficType.Storage.name(), trafficLabel));
|
||||||
|
storageBrName = createVnetBr(vNetId, storageBrName, protocol);
|
||||||
|
}
|
||||||
intf.defBridgeNet(storageBrName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
|
intf.defBridgeNet(storageBrName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter));
|
||||||
}
|
}
|
||||||
if (nic.getPxeDisable()) {
|
if (nic.getPxeDisable()) {
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('label.vlan'),
|
title: this.$t('label.vlan'),
|
||||||
dataIndex: 'vlanid'
|
dataIndex: 'vlan'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('label.startip'),
|
title: this.$t('label.startip'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue