diff options
author | Stephen Worley <sworley@nvidia.com> | 2021-04-05 23:12:01 +0200 |
---|---|---|
committer | Stephen Worley <sworley@nvidia.com> | 2023-02-14 00:12:05 +0100 |
commit | d5ea1185d58ab8fed07e80f2d261fa8e1b0c3624 (patch) | |
tree | 1df57e7843321ce2b3a05679dd275a2b4a92a110 /lib/zclient.h | |
parent | lib,zebra,bgpd,staticd: use label code to store VNI info (diff) | |
download | frr-d5ea1185d58ab8fed07e80f2d261fa8e1b0c3624.tar.xz frr-d5ea1185d58ab8fed07e80f2d261fa8e1b0c3624.zip |
lib: add label_type as field in zapi_nexthop
Add the ability to specify the label type along with the labels
you are passing to zebra in zapi_nexthop. This is needed as we
abstract the label code to be re-used by evpn as well as mpls.
Protocols need to be able to set the type of label they have attached.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r-- | lib/zclient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index 8c4ce1b77..55957e4be 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -427,6 +427,7 @@ struct zapi_nexthop { /* MPLS labels for BGP-LU or Segment Routing */ uint8_t label_num; + enum lsp_types_t label_type; mpls_label_t labels[MPLS_MAX_LABELS]; struct ethaddr rmac; |