Sfoglia il codice sorgente

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 7 anni fa
parent
commit
c5b207fde5
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 ""
 }