Pearl1594 commented on code in PR #14803:
URL: https://github.com/apache/cloudstack/pull/14803#discussion_r4672946283


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java:
##########
@@ -212,22 +212,43 @@ public static boolean isUntaggedBroadcast(final NicTO 
nic) {
         return nic.getBroadcastUri() != null && 
"untagged".equalsIgnoreCase(Networks.BroadcastDomainType.getValue(nic.getBroadcastUri()));
     }
 
+    // the nic's own guest traffic label, else the default guest bridge
+    protected String resolveGuestBridgeName(final NicTO nic) {
+        String trafficLabel = nic.getName();
+        return StringUtils.isNotEmpty(trafficLabel) ? trafficLabel : 
_bridges.get("guest");
+    }
+
+    // Opt-in via the zone setting (carried on the nic) and decided per the 
nic's own bridge: a host can carry several
+    // guest bridges, only some with vlan_filtering on. Without the setting, 
vlan_filtering alone never changes the topology.
     protected boolean usesSharedVlanAwareBridge(final NicTO nic) {
-        return nic.getBroadcastType() == Networks.BroadcastDomainType.Vlan && 
_libvirtComputingResource.hostSupportsVlanFiltering()
-                && !isUntaggedBroadcast(nic);
+        if (!nic.isSharedVlanBridgeEnabled() || nic.getBroadcastType() != 
Networks.BroadcastDomainType.Vlan || isUntaggedBroadcast(nic)) {
+            return false;

Review Comment:
   fixed with: 
https://github.com/apache/cloudstack/pull/14803/commits/1373f10da09ce36610726ec8e0b65ed0d6cbe397
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to