mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
ospfd: print administrative distance in show ip ospf
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
This commit is contained in:
parent
9fdb4735ad
commit
f61b005a0b
@ -3271,6 +3271,12 @@ static int show_ip_ospf_common(struct vty *vty, struct ospf *ospf,
|
|||||||
/* Show refresh parameters. */
|
/* Show refresh parameters. */
|
||||||
json_object_int_add(json_vrf, "refreshTimerMsecs",
|
json_object_int_add(json_vrf, "refreshTimerMsecs",
|
||||||
ospf->lsa_refresh_interval * 1000);
|
ospf->lsa_refresh_interval * 1000);
|
||||||
|
|
||||||
|
/* show administrative distance */
|
||||||
|
json_object_int_add(json_vrf, "preference",
|
||||||
|
ospf->distance_all
|
||||||
|
? ospf->distance_all
|
||||||
|
: ZEBRA_OSPF_DISTANCE_DEFAULT);
|
||||||
} else {
|
} else {
|
||||||
vty_out(vty, " SPF timer %s%s\n",
|
vty_out(vty, " SPF timer %s%s\n",
|
||||||
(ospf->t_spf_calc ? "due in " : "is "),
|
(ospf->t_spf_calc ? "due in " : "is "),
|
||||||
@ -3293,6 +3299,11 @@ static int show_ip_ospf_common(struct vty *vty, struct ospf *ospf,
|
|||||||
/* show max multipath */
|
/* show max multipath */
|
||||||
vty_out(vty, " Maximum multiple paths(ECMP) supported %d\n",
|
vty_out(vty, " Maximum multiple paths(ECMP) supported %d\n",
|
||||||
ospf->max_multipath);
|
ospf->max_multipath);
|
||||||
|
|
||||||
|
/* show administrative distance */
|
||||||
|
vty_out(vty, " Administrative distance %u\n",
|
||||||
|
ospf->distance_all ? ospf->distance_all
|
||||||
|
: ZEBRA_OSPF_DISTANCE_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show ABR/ASBR flags. */
|
/* Show ABR/ASBR flags. */
|
||||||
|
Loading…
Reference in New Issue
Block a user