diff options
author | Hiroki Shirokura <slank.dev@gmail.com> | 2021-04-23 14:46:07 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 16:24:48 +0200 |
commit | c60c1ade86c1c999f5219c0ebc35374acddb661c (patch) | |
tree | c6ce5abfb04ada0bd371990760691779d925d95b /sharpd | |
parent | zebra: early return on seg6local nlmsg crafting (diff) | |
download | frr-c60c1ade86c1c999f5219c0ebc35374acddb661c.tar.xz frr-c60c1ade86c1c999f5219c0ebc35374acddb661c.zip |
*: delete ZEBRA_FLAG_SEG6*_ROUTE and add ZAPI_NEXTHOP_FLAG_SEG6*
https://github.com/FRRouting/frr/pull/5865#discussion_r597670225
As this comment says. ZEBRA_FLAG_XXX should not have been used.
To communicate SRv6 Route Information. A simple Nexthop Flag would
have been sufficient for SRv6 information. And I fixed the whole
thing that way.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_vty.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 7482a6da6..1a3c5f450 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -406,9 +406,7 @@ DEFPY (install_seg6_routes, sg.r.nhop.gate.ipv6 = seg6_nh6; sg.r.nhop.vrf_id = vrf->vrf_id; sg.r.nhop_group.nexthop = &sg.r.nhop; - nexthop_add_srv6_seg6(&sg.r.nhop, &seg6_seg); - SET_FLAG(route_flags, ZEBRA_FLAG_SEG6_ROUTE); sg.r.vrf_id = vrf->vrf_id; sharp_install_routes_helper(&prefix, sg.r.vrf_id, sg.r.inst, 0, @@ -505,7 +503,6 @@ DEFPY (install_seg6local_routes, sg.r.nhop.vrf_id = vrf->vrf_id; sg.r.nhop_group.nexthop = &sg.r.nhop; nexthop_add_srv6_seg6local(&sg.r.nhop, action, &ctx); - SET_FLAG(route_flags, ZEBRA_FLAG_SEG6LOCAL_ROUTE); sg.r.vrf_id = vrf->vrf_id; sharp_install_routes_helper(&sg.r.orig_prefix, sg.r.vrf_id, sg.r.inst, 0, |