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_dynhn.c | |
| parent | 7f9ab3b0bbd8c4b81b839872b02efbd11f6c67b0 (diff) | |
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_dynhn.c')
| -rw-r--r-- | isisd/isis_dynhn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isis_dynhn.c b/isisd/isis_dynhn.c index ef21de327e..ea33ffd3c4 100644 --- a/isisd/isis_dynhn.c +++ b/isisd/isis_dynhn.c @@ -145,12 +145,10 @@ void dynhn_print_all(struct vty *vty, struct isis *isis) vty_out(vty, "Level System ID Dynamic Hostname\n"); for (ALL_LIST_ELEMENTS_RO(isis->dyn_cache, node, dyn)) { vty_out(vty, "%-7d", dyn->level); - vty_out(vty, "%-15s%-15s\n", sysid_print(dyn->id), - dyn->hostname); + vty_out(vty, "%pSY %-15s\n", dyn->id, dyn->hostname); } - vty_out(vty, " * %s %s\n", sysid_print(isis->sysid), - cmd_hostname_get()); + vty_out(vty, " * %pSY %s\n", isis->sysid, cmd_hostname_get()); return; } |
