Skip to content

Commit

Permalink
ovs-router: skip getting source address for kube-ipvs0
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Apr 17, 2024
1 parent a2a0a2e commit c8f8781
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ovs-router.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ ovs_router_get_netdev_source_address(const struct in6_addr *ip6_dst,
struct netdev *dev;
bool is_ipv4;

if (!strcmp(output_bridge, "kube-ipvs0")) {
VLOG_DBG_RL(&rl, "skip getting source address for device kube-ipvs0");
return 0;
}

err = netdev_open(output_bridge, NULL, &dev);
if (err) {
return err;
Expand Down

0 comments on commit c8f8781

Please sign in to comment.