Browse Source

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 years ago
parent
commit
c5b207fde5
1 changed files with 4 additions and 0 deletions
  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 ""
 }