when adding vpc router to ha group, sync its additional public l3 to hagroup
fix
@@ -98,6 +98,16 @@ public class VirtualRouterNicMetaData {
return (mask & ADDITIONAL_PUBLIC_NIC_MASK) != 0;
}
+ public static boolean isAddinitionalPublicNic(VmNicVO nic) {
+ String meta = nic.getMetaData();
+ if (meta == null) {
+ return false;
+ }
+
+ int mask = Integer.valueOf(meta);
+ return (mask & ADDITIONAL_PUBLIC_NIC_MASK) != 0;
+ }
+
public static boolean isManagementNic(VmNicInventory nic) {
String meta = nic.getMetaData();
if (meta == null) {
