mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 20:55:25 +00:00
zebra: allow multiple labels in LSP zapi message
The handlers for a couple of the main LSP-oriented zapi messages explicitly limited themselves to a single out-label. Allow multiple labels if the sender ... sends them. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
8105c99404
commit
95a70b4315
@ -1826,7 +1826,9 @@ static void zread_mpls_labels_add(ZAPI_HANDLER_ARGS)
|
||||
struct zapi_nexthop *znh;
|
||||
|
||||
znh = &zl.nexthops[i];
|
||||
mpls_lsp_install(zvrf, zl.type, zl.local_label, 1, znh->labels,
|
||||
|
||||
mpls_lsp_install(zvrf, zl.type, zl.local_label,
|
||||
znh->label_num, znh->labels,
|
||||
znh->type, &znh->gate, znh->ifindex);
|
||||
|
||||
if (CHECK_FLAG(zl.message, ZAPI_LABELS_FTN))
|
||||
@ -1929,7 +1931,7 @@ static void zread_mpls_labels_replace(ZAPI_HANDLER_ARGS)
|
||||
|
||||
znh = &zl.nexthops[i];
|
||||
mpls_lsp_install(zvrf, zl.type, zl.local_label,
|
||||
1, znh->labels, znh->type,
|
||||
znh->label_num, znh->labels, znh->type,
|
||||
&znh->gate, znh->ifindex);
|
||||
|
||||
if (CHECK_FLAG(zl.message, ZAPI_LABELS_FTN)) {
|
||||
|
Loading…
Reference in New Issue
Block a user