mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
zebra: when adding an LSP, update the log message with multiple label
When an LSP entry is created from a FEC entry, multiple labels may now be appended to the LSP entry, instead of one single. Upon lsp creation, the LSP trace will display all the labels appended. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
This commit is contained in:
parent
cc25d7bd92
commit
110cb369a3
@ -234,11 +234,18 @@ static int lsp_install(struct zebra_vrf *zvrf, mpls_label_t label,
|
||||
return -1;
|
||||
|
||||
if (IS_ZEBRA_DEBUG_MPLS) {
|
||||
char label_str[MPLS_LABEL_STRLEN];
|
||||
|
||||
nhlfe2str(nhlfe, buf, BUFSIZ);
|
||||
zlog_debug(
|
||||
"Add LSP in-label %u type %d nexthop %s out-label %u",
|
||||
zlog_debug("Add LSP in-label %u type %d nexthop %s out-label %s",
|
||||
lsp->ile.in_label, lsp_type, buf,
|
||||
nexthop->nh_label->label[0]);
|
||||
mpls_label2str(nexthop->nh_label
|
||||
->num_labels,
|
||||
nexthop->nh_label->label,
|
||||
label_str,
|
||||
sizeof(label_str),
|
||||
nexthop->nh_label_type,
|
||||
0));
|
||||
}
|
||||
|
||||
lsp->addr_family = NHLFE_FAMILY(nhlfe);
|
||||
|
Loading…
Reference in New Issue
Block a user