Skip to content

Commit 4e5a8f7

Browse files
committed
fix: subnet not count ovn eip after ip exist
Signed-off-by: zbb88888 <[email protected]>
1 parent 2bf5327 commit 4e5a8f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/controller/vpc_nat_gw_eip.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ func (c *Controller) enqueueUpdateIptablesEip(oldObj, newObj any) {
3838
klog.Infof("enqueue update iptables eip %s", key)
3939
c.updateIptablesEipQueue.Add(key)
4040
}
41-
externalNetwork := util.GetExternalNetwork(newEip.Spec.ExternalSubnet)
42-
c.updateSubnetStatusQueue.Add(externalNetwork)
4341
}
4442

4543
func (c *Controller) enqueueDelIptablesEip(obj any) {
@@ -156,6 +154,7 @@ func (c *Controller) handleAddIptablesEip(key string) error {
156154
klog.Errorf("failed to update eip %s, %v", key, err)
157155
return err
158156
}
157+
c.updateSubnetStatusQueue.Add(subnet.Name)
159158
return nil
160159
}
161160

0 commit comments

Comments
 (0)