mirror of https://github.com/apache/cloudstack.git
PVLAN: Check BroadcastDomainType before extract pvlan tag
This commit is contained in:
parent
eb7c321426
commit
8ee4f6c080
|
|
@ -2689,8 +2689,9 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
if (uri != null) {
|
||||
String[] vlan = uri.toString().split("vlan:\\/\\/");
|
||||
networkVlanId = vlan[1];
|
||||
//For pvlan
|
||||
networkVlanId = networkVlanId.split("-")[0];
|
||||
if (network.getBroadcastDomainType() == BroadcastDomainType.Pvlan) {
|
||||
networkVlanId = networkVlanId.split("-")[0];
|
||||
}
|
||||
}
|
||||
|
||||
if (vlanId != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue