Skip to content

Commit

Permalink
vpcagent: fend off non-onecloud-vpc guest nics
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Apr 26, 2020
1 parent c7d5c76 commit 16ced39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/vpcagent/models/modelset.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,11 @@ func (set Guestnetworks) joinGuests(subEntries Guests) bool {
gId := gn.GuestId
g, ok := subEntries[gId]
if !ok {
log.Warningf("guestnetwork %d(%s,%s) guest id %s not found",
gn.Index, gn.NetworkId, gn.IpAddr, gId)
correct = false
if gn.Network != nil && gn.Network.Vpc != nil {
log.Warningf("guestnetwork %d(net:%s,ip:%s) guest id %s not found",
gn.RowId, gn.NetworkId, gn.IpAddr, gId)
correct = false
}
continue
}
gn.Guest = g
Expand Down

0 comments on commit 16ced39

Please sign in to comment.