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 Jan 20, 2024
1 parent 3fd1ac2 commit 9d371a4
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 (!strncmp(output_bridge, "kube-ipvs0", 10)) {
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 9d371a4

Please sign in to comment.