diff --git a/pkg/vpcagent/models/modelset.go b/pkg/vpcagent/models/modelset.go index f4eccbeeb1..78d49b9974 100644 --- a/pkg/vpcagent/models/modelset.go +++ b/pkg/vpcagent/models/modelset.go @@ -526,6 +526,10 @@ func (set Elasticips) NewModel() db.IModel { func (set Elasticips) AddModel(i db.IModel) { m := i.(*Elasticip) + if m.IpAddr == "" || m.NetworkId == "" { + // eip records can exist with network id and ip addr not set + return + } set[m.Id] = m }