mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 14:27:36 +00:00
bgpd: make show bgp labeled-unicast work
Yet-another path where the safi needs to be changed to locate the unicast table where LU routes live. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
This commit is contained in:
parent
88dde69cb6
commit
cd8c2a27c1
@ -11121,6 +11121,10 @@ static int bgp_show(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi,
|
|||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Labeled-unicast routes live in the unicast table. */
|
||||||
|
if (safi == SAFI_LABELED_UNICAST)
|
||||||
|
safi = SAFI_UNICAST;
|
||||||
|
|
||||||
table = bgp->rib[afi][safi];
|
table = bgp->rib[afi][safi];
|
||||||
/* use MPLS and ENCAP specific shows until they are merged */
|
/* use MPLS and ENCAP specific shows until they are merged */
|
||||||
if (safi == SAFI_MPLS_VPN) {
|
if (safi == SAFI_MPLS_VPN) {
|
||||||
@ -11133,9 +11137,6 @@ static int bgp_show(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi,
|
|||||||
output_arg, use_json,
|
output_arg, use_json,
|
||||||
1, NULL, NULL);
|
1, NULL, NULL);
|
||||||
}
|
}
|
||||||
/* labeled-unicast routes live in the unicast table */
|
|
||||||
else if (safi == SAFI_LABELED_UNICAST)
|
|
||||||
safi = SAFI_UNICAST;
|
|
||||||
|
|
||||||
return bgp_show_table(vty, bgp, safi, table, type, output_arg, NULL, 1,
|
return bgp_show_table(vty, bgp, safi, table, type, output_arg, NULL, 1,
|
||||||
NULL, NULL, &json_header_depth, show_flags,
|
NULL, NULL, &json_header_depth, show_flags,
|
||||||
|
Loading…
Reference in New Issue
Block a user