Explorar el Código

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 hace 7 años
padre
commit
c5b207fde5
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 ""
 }