vpcagent: ignore possible external subnets

This commit is contained in:
Yousong Zhou
2020-05-12 18:05:48 +08:00
parent 600226fc2e
commit 218df2416c
+4 -1
View File
@@ -66,9 +66,12 @@ func (ms Vpcs) joinNetworks(subEntries Networks) bool {
}
m, ok := ms[id]
if !ok {
// 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): vpc id %s not found",
subEntry.Name, subEntry.Id, id)
correct = false
delete(subEntries, subId)
continue
}
if _, ok := m.Networks[subId]; ok {