diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-08-08 15:57:13 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-09-10 00:01:10 -0300 |
| commit | ea6b290bf6a29aa06888c93dae9bec4581ce686f (patch) | |
| tree | 87adcd62077218a576850849b302cfa556ec3ee2 /lib/zclient.h | |
| parent | 651105b5fb5e928a67349bf49394c69c72435ccf (diff) | |
lib, zebra: add new MPLS zapi message with route replace semantics
This new message makes it possible to install/reinstall LSPs with
multiple nexthops using a single ZAPI message.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index e0da1cbe32..eb3c97b111 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -126,6 +126,7 @@ typedef enum { ZEBRA_INTERFACE_LINK_PARAMS, ZEBRA_MPLS_LABELS_ADD, ZEBRA_MPLS_LABELS_DELETE, + ZEBRA_MPLS_LABELS_REPLACE, ZEBRA_IPMR_ROUTE_STATS, ZEBRA_LABEL_MANAGER_CONNECT, ZEBRA_LABEL_MANAGER_CONNECT_ASYNC, @@ -395,6 +396,14 @@ struct zapi_route { uint32_t tableid; }; +struct zapi_nexthop_label { + enum nexthop_types_t type; + int family; + union g_addr address; + ifindex_t ifindex; + mpls_label_t label; +}; + struct zapi_labels { uint8_t message; #define ZAPI_LABELS_FTN 0x01 @@ -405,13 +414,8 @@ struct zapi_labels { uint8_t type; unsigned short instance; } route; - struct { - enum nexthop_types_t type; - int family; - union g_addr address; - ifindex_t ifindex; - mpls_label_t label; - } nexthop; + uint16_t nexthop_num; + struct zapi_nexthop_label nexthops[MULTIPATH_NUM]; }; struct zapi_pw { |
