Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
c5b207fde5
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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 ""
 }