frr/vrrpd
echken aabe3c2079 fix(vrrp): display vrrp version by default
Make the VRRP version information always visible in the running
configuration output, regardless of whether it's the default value
(version 3) or not.

When using frr-reload.py to apply configuration changes, VRRP instances
were being unnecessarily reinitialized even when no actual configuration
changes were made. This occurred because:
The cli_show_vrrp function in vrrpd/vrrp_vty.c does not display the VRRP
version in the show running-config output when it's the default value
(version 3).
Configuration files often explicitly specify vrrp X version 3 even
though it's the default.
When frr-reload.py compares the explicit configuration with the running
configuration, it detects a difference and generates commands to remove
and recreate the VRRP instance.

This patch modifies the cli_show_vrrp function to unconditionally
display the VRRP version, regardless of whether it's the default value
or the show_defaults parameter is set. By making the version information
explicit in all cases, we ensure consistent configuration comparison in
frr-reload.py, preventing unnecessary VRRP reinitialization and
associated network disruptions.

Signed-off-by: echken <chengcheng.luo@smartx.com>
2025-03-17 03:46:26 +00:00
..
.gitignore vrrpd: add .gitignore 2019-05-17 00:27:08 +00:00
Makefile vrrpd: Allow it to be built in directory 2022-03-11 07:49:03 -05:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
vrrp.c *: convert struct interface->connected to DLIST 2023-11-22 23:00:30 +01:00
vrrp.h *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
vrrp_arp.c *: remove some leftover license blurbs 2023-02-09 14:09:11 +01:00
vrrp_arp.h *: remove some leftover license blurbs 2023-02-09 14:09:11 +01:00
vrrp_debug.c lib: common debug status output 2024-08-27 09:53:02 -04:00
vrrp_debug.h lib: common debug config output 2024-08-27 09:53:02 -04:00
vrrp_main.c *: create a single registry of daemons' default port values 2024-02-01 11:40:02 -05:00
vrrp_ndisc.c *: remove some leftover license blurbs 2023-02-09 14:09:11 +01:00
vrrp_ndisc.h *: remove some leftover license blurbs 2023-02-09 14:09:11 +01:00
vrrp_northbound.c lib: all: remove './' from xpath 22% speedup 2023-11-29 14:37:23 -05:00
vrrp_packet.c vrrpd: iterate over all ancillary messages 2024-10-07 13:05:10 -03:00
vrrp_packet.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
vrrp_vty.c fix(vrrp): display vrrp version by default 2025-03-17 03:46:26 +00:00
vrrp_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
vrrp_zebra.c *: convert struct interface->connected to DLIST 2023-11-22 23:00:30 +01:00
vrrp_zebra.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00