Skip to content

Commit

Permalink
Fix usage of ovn commands
Browse files Browse the repository at this point in the history
(cherry picked from commit 8393f32)
  • Loading branch information
chestack authored and oilbeater committed Feb 28, 2022
1 parent e083a2b commit cf7f4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ func (c Client) UpdateNatRule(policy, logicalIP, externalIP, router, logicalMac,
return err
}
_, err := c.ovnNbCommand(IfExists, "lr-nat-del", router, "snat", logicalIP, "--",
MayExist, "lr-nat-add", router, policy, externalIP, logicalIP)
"lr-nat-add", router, policy, externalIP, logicalIP)
return err
} else {
output, err := c.ovnNbCommand("--format=csv", "--no-heading", "--data=bare", "--columns=external_ip", "find", "NAT", fmt.Sprintf("logical_ip=%s", logicalIP), "type=dnat_and_snat")
Expand Down

0 comments on commit cf7f4bd

Please sign in to comment.