summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_vty.c
diff options
context:
space:
mode:
authorRajesh Varatharaj <rvaratharaj@nvidia.com>2022-04-22 23:16:25 +0200
committerRajesh Varatharaj <rvaratharaj@nvidia.com>2022-04-22 23:16:25 +0200
commit4ffc6ee84989f1de9ba5cba8006082b23d79c497 (patch)
tree4c85214255f6459abe442e9a2e1a7e8294ddcf32 /vrrpd/vrrp_vty.c
parentMerge pull request #11064 from opensourcerouting/fix/allow_only_euid_0_runnin... (diff)
downloadfrr-4ffc6ee84989f1de9ba5cba8006082b23d79c497.tar.xz
frr-4ffc6ee84989f1de9ba5cba8006082b23d79c497.zip
vrrpd: Fix display of 'Master Advertisement interval'
VRRP as per RFC 5798 'Master Advertisement interval' field refers to the advertisement interval, we received the last time we got an Advertisement from a peer who wasn't us, who was in the master state. This could be clarified by making the field name 'Master Advertisement interval (rx)',and when we're in the Master state, we put (stale) after the interval. Signed-off-by: Rajesh Varatharaj <rvaratharaj@nvidia.com>
Diffstat (limited to 'vrrpd/vrrp_vty.c')
-rw-r--r--vrrpd/vrrp_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c
index c11254c71..634a55dbc 100644
--- a/vrrpd/vrrp_vty.c
+++ b/vrrpd/vrrp_vty.c
@@ -503,11 +503,11 @@ static void vrrp_show(struct vty *vty, struct vrrp_vrouter *vr)
vr->accept_mode ? "Yes" : "No");
ttable_add_row(tt, "%s|%d ms", "Advertisement Interval",
vr->advertisement_interval * CS2MS);
- ttable_add_row(tt, "%s|%d ms",
- "Master Advertisement Interval (v4)",
+ ttable_add_row(tt, "%s|%d ms (stale)",
+ "Master Advertisement Interval (v4) Rx",
vr->v4->master_adver_interval * CS2MS);
- ttable_add_row(tt, "%s|%d ms",
- "Master Advertisement Interval (v6)",
+ ttable_add_row(tt, "%s|%d ms (stale)",
+ "Master Advertisement Interval (v6) Rx",
vr->v6->master_adver_interval * CS2MS);
ttable_add_row(tt, "%s|%u", "Advertisements Tx (v4)",
vr->v4->stats.adver_tx_cnt);