vpcagent: ignore network without wire ids (#7629)

This commit is contained in:
Yousong Zhou
2020-08-25 23:31:32 +08:00
committed by GitHub
parent 61214f2e2c
commit 500e2edad7
+4 -2
View File
@@ -84,9 +84,11 @@ func (ms Vpcs) joinNetworks(subEntries Networks) bool {
for subId, subEntry := range subEntries {
wire := subEntry.Wire
if wire == nil {
// ensured by vpcs.joinWires
// let it go. By the time the subnet has externalId or
// managerId set, we will not receive updates from them
// anymore
log.Warningf("network %s(%s) has no wire", subEntry.Name, subEntry.Id)
correct = false
delete(subEntries, subId)
continue
}
id := wire.VpcId