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


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java:
##########
@@ -695,6 +695,11 @@ protected String replaceDpdkInterfaces(String xmlDesc, 
Map<String, DpdkTO> dpdkP
         return LibvirtXMLParser.getXml(doc);
     }
 
+    // Trunk nics always need it; ordinary nics only when the zone opted in to 
the shared VLAN-aware bridge
+    private boolean needsVlanRewrite(NicTO nic, boolean 
sourceVlanFilteringEnabled, boolean destVlanFilteringEnabled) {
+        return nic.isTrunkVlan() || (nic.isSharedVlanBridgeEnabled() && 
(sourceVlanFilteringEnabled || destVlanFilteringEnabled));

Review Comment:
   warning has been added, and documentation has been updated.



-- 
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