diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-01-26 17:47:04 +0100 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-03-21 15:21:47 +0100 |
commit | 5d39a8190740b2b54de3b4d7e1527901bcbc2a33 (patch) | |
tree | 8e5bd9d07e0b0764a3ff65786005cf2a43de615d /isisd/isis_sr.c | |
parent | lib: Add ISO System & Network format to printfrr (diff) | |
download | frr-5d39a8190740b2b54de3b4d7e1527901bcbc2a33.tar.xz frr-5d39a8190740b2b54de3b4d7e1527901bcbc2a33.zip |
isisd: Update to the new printfrr ISO format
This path replaces isisd_format_id, sysid_print, snpa_print, rawlspid_print and
isonet_print functions by the new printfrr ISO System ID & Network Address
format facilities. It also updates the isisd code to the new iso_address
structure defined in lib/iso.h
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'isisd/isis_sr.c')
-rw-r--r-- | isisd/isis_sr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/isisd/isis_sr.c b/isisd/isis_sr.c index 429399165..9bbfcfe6d 100644 --- a/isisd/isis_sr.c +++ b/isisd/isis_sr.c @@ -1022,14 +1022,14 @@ static void show_node(struct vty *vty, struct isis_area *area, int level) if (!cap) continue; - ttable_add_row( - tt, "%s|%u - %u|%u - %u|%s|%u", - sysid_print(lsp->hdr.lsp_id), cap->srgb.lower_bound, - cap->srgb.lower_bound + cap->srgb.range_size - 1, - cap->srlb.lower_bound, - cap->srlb.lower_bound + cap->srlb.range_size - 1, - cap->algo[0] == SR_ALGORITHM_SPF ? "SPF" : "S-SPF", - cap->msd); + ttable_add_row(tt, "%pSY|%u - %u|%u - %u|%s|%u", + lsp->hdr.lsp_id, cap->srgb.lower_bound, + cap->srgb.lower_bound + cap->srgb.range_size - 1, + cap->srlb.lower_bound, + cap->srlb.lower_bound + cap->srlb.range_size - 1, + cap->algo[0] == SR_ALGORITHM_SPF ? "SPF" + : "S-SPF", + cap->msd); } /* Dump the generated table. */ |