diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-29 17:10:41 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-29 17:10:41 +0200 |
commit | 3c5122c5a7245f703bab3aec098a0f28822eb903 (patch) | |
tree | 1f52120826116ee451860d494bc4e8daeddcc0af /ospf6d/ospf6_zebra.c | |
parent | Merge pull request #8937 from idryzhov/index-once-again (diff) | |
download | frr-3c5122c5a7245f703bab3aec098a0f28822eb903.tar.xz frr-3c5122c5a7245f703bab3aec098a0f28822eb903.zip |
ospf6d: use per-vrf router id instead of one global
This code was not fully completed when adding support for VRFs.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to '')
-rw-r--r-- | ospf6d/ospf6_zebra.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index 170d545c4..a7e15c68a 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -90,15 +90,16 @@ static int ospf6_router_id_update_zebra(ZAPI_CALLBACK_ARGS) zebra_router_id_update_read(zclient->ibuf, &router_id); - om6->zebra_router_id = router_id.u.prefix4.s_addr; + if (IS_OSPF6_DEBUG_ZEBRA(RECV)) + zlog_debug("Zebra router-id update %pI4 vrf %s id %u", + &router_id.u.prefix4, ospf6_vrf_id_to_name(vrf_id), + vrf_id); + o = ospf6_lookup_by_vrf_id(vrf_id); if (o == NULL) return 0; - o->router_id_zebra = router_id.u.prefix4; - if (IS_OSPF6_DEBUG_ZEBRA(RECV)) - zlog_debug("%s: zebra router-id %pI4 update", __func__, - &router_id.u.prefix4); + o->router_id_zebra = router_id.u.prefix4.s_addr; ospf6_router_id_update(o); |