Ver Fonte

Added compatibility check to compare GBP for VXLAN

vxlanLinkIncompat function did not check GBP so it was possible that
changes in the config would not be refreshed.

Fixes #562
matt há 7 anos atrás
pai
commit
c5b207fde5
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      backend/vxlan/device.go

+ 4 - 0
backend/vxlan/device.go

@@ -291,6 +291,10 @@ func vxlanLinksIncompat(l1, l2 netlink.Link) string {
 		return fmt.Sprintf("port: %v vs %v", v1.Port, v2.Port)
 	}
 
+	if v1.GBP != v2.GBP {
+		return fmt.Sprintf("gbp: %v vs %v", v1.GBP, v2.GBP)
+	}
+
 	return ""
 }