diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-02-08 09:50:32 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-02-08 20:35:14 -0500 |
| commit | 339e36d258ad73701d7b9eccc0e56e48cdea1a2d (patch) | |
| tree | 38adacaebff070103e0388f5aff39d8668cbbbef /lib/zclient.c | |
| parent | 70e98a7fe7296a1279c6b7142e57221f71ff3121 (diff) | |
lib, sharpd, zebra: Add new enum for lsp type and pass it through.
Add the ability to pass the lsp owner type through the zapi
and in addition add a new label type for the sharp protocol
for testing.
Finally modify zebra_mpls.h to not have defaults specified
for the enum. That way when we add a new LSP type the
compile fails and the person doing the addition knows
where he has to touch shit.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index f8cdc61f7d..8e8b50b15e 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -364,7 +364,7 @@ static int zebra_hello_send(struct zclient *zclient) } void zclient_send_vrf_label(struct zclient *zclient, vrf_id_t vrf_id, - mpls_label_t label) + mpls_label_t label, enum lsp_types_t ltype) { struct stream *s; @@ -373,6 +373,7 @@ void zclient_send_vrf_label(struct zclient *zclient, vrf_id_t vrf_id, zclient_create_header(s, ZEBRA_VRF_LABEL, vrf_id); stream_putl(s, label); + stream_putc(s, ltype); stream_putw_at(s, 0, stream_get_endp(s)); zclient_send_message(zclient); } |
