Skip to content

Commit

Permalink
skip kube-ipvs0 in function ovs_router_get_netdev_source_address()
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 8a3a565 commit 3881e68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ovs-router.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ ovs_router_get_netdev_source_address(const struct in6_addr *ip6_dst,
return err;
}

if (!strncmp(output_bridge, "kube-ipvs0", 10)) {
VLOG_INFO_RL(&rl, "skip getting router source address "
"for device kube-ipvs0");
return 0;
}

err = netdev_get_addr_list(dev, &addr6, &mask, &n_in6);
if (err) {
goto out;
Expand Down

0 comments on commit 3881e68

Please sign in to comment.