Pearl1594 commented on code in PR #14166:
URL: https://github.com/apache/cloudstack/pull/14166#discussion_r4670277962
##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java:
##########
@@ -6325,6 +6337,69 @@ public boolean hostSupportsInstanceConversion() {
return exitValue == 0;
}
+ /**
+ * Static capability: whether this host's libvirt understands multi-tag
trunk vlan XML
+ * (<vlan trunk='yes'>) on a standard Linux bridge interface.
+ */
+ public boolean hostSupportsVlanTrunkXml() {
+ return hypervisorLibvirtVersion >= MIN_LIBVIRT_VERSION_FOR_VLAN_TRUNK;
+ }
+
+ /**
+ * Live state: whether vlan_filtering is currently enabled on this host's
guest bridge.
+ * A vlan_filtering=0 bridge floods every tagged frame to every port
regardless of tag,
+ * so this must be true before any multi-VLAN trunk nic can be placed on
this host.
+ */
+ public boolean hostSupportsVlanFiltering() {
+ return isBridgeVlanFilteringEnabled(getEffectiveGuestBridgeName());
Review Comment:
Addressed in https://github.com/apache/cloudstack/pull/14803
--
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]