mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
ospf6d: print administrative distance in show ipv6 ospf
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
This commit is contained in:
parent
fcd45026a2
commit
94c78d3b6d
@ -1337,6 +1337,10 @@ static void ospf6_show(struct vty *vty, struct ospf6 *o, json_object *json,
|
|||||||
o->spf_hold_multiplier);
|
o->spf_hold_multiplier);
|
||||||
|
|
||||||
json_object_int_add(json, "maximumPaths", o->max_multipath);
|
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) {
|
if (o->ts_spf.tv_sec || o->ts_spf.tv_usec) {
|
||||||
timersub(&now, &o->ts_spf, &result);
|
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);
|
o->lsa_minarrival);
|
||||||
|
|
||||||
vty_out(vty, " Maximum-paths %u\n", o->max_multipath);
|
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 */
|
/* Show SPF parameters */
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
|
Loading…
Reference in New Issue
Block a user