summaryrefslogtreecommitdiffstats
path: root/pimd/pim_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-09-30 15:10:12 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-05-26 02:38:33 +0200
commit6b775f61209b1011db1afdb4a2465d10e5e00217 (patch)
tree65290e2ef6e386403eabf8742bdc228947d7ccb1 /pimd/pim_vty.c
parentpimd: Fix warning (diff)
downloadfrr-6b775f61209b1011db1afdb4a2465d10e5e00217.tar.xz
frr-6b775f61209b1011db1afdb4a2465d10e5e00217.zip
pimd: Do not display some default values as part of a show run
There is no need to display igmp default values for the query-interval and the query-max-response-time-dsec Before change: ! interface swp4 description swp4 -> host-212's swp1 ip igmp ip igmp query-interval 125 ip igmp query-max-response-time-dsec 100 ip pim ssm link-detect ! After change: ! interface br1 ip igmp ip pim ssm link-detect ! Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
-rw-r--r--pimd/pim_vty.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index 2d6895dbc..52e61521d 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -158,18 +158,24 @@ int pim_interface_config_write(struct vty *vty)
}
/* IF ip igmp query-interval */
- vty_out(vty, " %s %d%s",
- PIM_CMD_IP_IGMP_QUERY_INTERVAL,
- pim_ifp->igmp_default_query_interval,
- VTY_NEWLINE);
- ++writes;
+ if (pim_ifp->igmp_default_query_interval != IGMP_GENERAL_QUERY_INTERVAL)
+ {
+ vty_out(vty, " %s %d%s",
+ PIM_CMD_IP_IGMP_QUERY_INTERVAL,
+ pim_ifp->igmp_default_query_interval,
+ VTY_NEWLINE);
+ ++writes;
+ }
/* IF ip igmp query-max-response-time */
- vty_out(vty, " %s %d%s",
- PIM_CMD_IP_IGMP_QUERY_MAX_RESPONSE_TIME_DSEC,
- pim_ifp->igmp_query_max_response_time_dsec,
- VTY_NEWLINE);
- ++writes;
+ if (pim_ifp->igmp_query_max_response_time_dsec != IGMP_QUERY_MAX_RESPONSE_TIME_DSEC)
+ {
+ vty_out(vty, " %s %d%s",
+ PIM_CMD_IP_IGMP_QUERY_MAX_RESPONSE_TIME_DSEC,
+ pim_ifp->igmp_query_max_response_time_dsec,
+ VTY_NEWLINE);
+ ++writes;
+ }
/* IF ip igmp join */
if (pim_ifp->igmp_join_list) {