From 3881e682acd5c3c8d94aa096faf4abf77436e8a2 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Sat, 20 Jan 2024 05:19:06 +0000 Subject: [PATCH] skip kube-ipvs0 in function ovs_router_get_netdev_source_address() Signed-off-by: zhangzujian --- lib/ovs-router.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ovs-router.c b/lib/ovs-router.c index 39262705e50..72027908a01 100644 --- a/lib/ovs-router.c +++ b/lib/ovs-router.c @@ -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;