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 9cd933b
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 @@ -174,6 +174,12 @@ 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_INFO_RL(&rl, "skip getting router 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 9cd933b

Please sign in to comment.