diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-17 23:43:01 +0900 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:48 -0400 |
| commit | 76fb7ae4dea7604afe1185df91de941d9e3ce58f (patch) | |
| tree | 136d629c32287630a959bc687294baa9c5964d9c /zebra/zebra_nhg.c | |
| parent | 2aa01034f3c437e076cf12f1ea4e4b7b5b6b9075 (diff) | |
zebra: ZEBRA_ROUTE_ADD supports seg6 route (step3)
With this patch, zclient can intall seg6 rotues when
they set properties "nh_seg6_segs" on struct nexthop
and set ZEBRA_FLAG_SEG6_ROUTE on zapi_route's flag.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'zebra/zebra_nhg.c')
| -rw-r--r-- | zebra/zebra_nhg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index ddd37b4df7..84ce97b008 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -1008,6 +1008,7 @@ void nhg_ctx_free(struct nhg_ctx **ctx) nexthop_del_labels(nh); nexthop_del_seg6local(nh); + nexthop_del_seg6(nh); done: XFREE(MTYPE_NHG_CTX, *ctx); @@ -1379,6 +1380,7 @@ static struct nhg_hash_entry *depends_find_singleton(const struct nexthop *nh, /* The copy may have allocated labels; free them if necessary. */ nexthop_del_labels(&lookup); nexthop_del_seg6local(&lookup); + nexthop_del_seg6(&lookup); if (IS_ZEBRA_DEBUG_NHG_DETAIL) zlog_debug("%s: nh %pNHv => %p (%u)", |
