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 3fd1ac2 commit dc64d8c
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 dc64d8c

Please sign in to comment.