Skip to content

Commit

Permalink
Update ovn_fip.go
Browse files Browse the repository at this point in the history
use c.config.ClusterRouter instead of defaultVPC const

Signed-off-by: HuangWei <[email protected]>
  • Loading branch information
a180285 committed Jan 24, 2024
1 parent 5faa3d4 commit ef506b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/ovn_fip.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func (c *Controller) handleDelOvnFip(key string) error {
}
// ovn delete fip nat
if cachedFip.Status.Vpc != "" && cachedFip.Status.V4Eip != "" && cachedFip.Status.V4Ip != "" {
if cachedFip.Status.Vpc == util.DefaultVpc {
if cachedFip.Status.Vpc == c.config.ClusterRouter {
match := fmt.Sprintf("ip4.src == %s", cachedFip.Status.V4Ip)
if err = c.OVNNbClient.DeleteLogicalRouterPolicy(cachedFip.Status.Vpc, util.DefaultVpcFipPolicyPriority, match); err != nil {
klog.Errorf("failed to delete LogicalRouterPolicy for fip: %s, %v", cachedFip.Name, err)
Expand Down

0 comments on commit ef506b3

Please sign in to comment.