summaryrefslogtreecommitdiffstats
path: root/bgpd/rfp-example
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2018-12-06 20:26:10 +0100
committerRafael Zalamena <rzalamena@opensourcerouting.org>2018-12-06 20:26:10 +0100
commitd6efeaac3edf7586c79b5abd36cd2432ea436f3b (patch)
tree8b814049e638dad77489f767271f988fe618033b /bgpd/rfp-example
parentMerge pull request #3419 from opensourcerouting/freebsd-route-warning-fix (diff)
downloadfrr-d6efeaac3edf7586c79b5abd36cd2432ea436f3b.tar.xz
frr-d6efeaac3edf7586c79b5abd36cd2432ea436f3b.zip
bgpd: don't show default value in configuration
Don't show the configuration line `rfp full-table-download off` by default as it is not the default value, instead only show `rfp full-table-download on` (the non-default value) when it is configured. This standardizes this knob to the FRR default behavior. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bgpd/rfp-example')
-rw-r--r--bgpd/rfp-example/librfp/rfp_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfp-example/librfp/rfp_example.c b/bgpd/rfp-example/librfp/rfp_example.c
index af3092232..e8f670cf1 100644
--- a/bgpd/rfp-example/librfp/rfp_example.c
+++ b/bgpd/rfp-example/librfp/rfp_example.c
@@ -255,8 +255,8 @@ static int rfp_cfg_write_cb(struct vty *vty, void *rfp_start_val)
rfi->rfapi_config.holddown_factor);
write++;
}
- if (rfi->rfapi_config.download_type != RFAPI_RFP_DOWNLOAD_FULL) {
- vty_out(vty, " rfp full-table-download off\n");
+ if (rfi->rfapi_config.download_type == RFAPI_RFP_DOWNLOAD_FULL) {
+ vty_out(vty, " rfp full-table-download on\n");
write++;
}
return write;