ospf6d: print administrative distance in show ipv6 ospf

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
This commit is contained in:
ckishimo 2022-01-26 22:46:44 +01:00
parent fcd45026a2
commit 94c78d3b6d

View File

@ -1337,6 +1337,10 @@ static void ospf6_show(struct vty *vty, struct ospf6 *o, json_object *json,
o->spf_hold_multiplier);
json_object_int_add(json, "maximumPaths", o->max_multipath);
json_object_int_add(json, "preference",
o->distance_all
? o->distance_all
: ZEBRA_OSPF6_DISTANCE_DEFAULT);
if (o->ts_spf.tv_sec || o->ts_spf.tv_usec) {
timersub(&now, &o->ts_spf, &result);
@ -1420,6 +1424,9 @@ static void ospf6_show(struct vty *vty, struct ospf6 *o, json_object *json,
o->lsa_minarrival);
vty_out(vty, " Maximum-paths %u\n", o->max_multipath);
vty_out(vty, " Administrative distance %u\n",
o->distance_all ? o->distance_all
: ZEBRA_OSPF6_DISTANCE_DEFAULT);
/* Show SPF parameters */
vty_out(vty,