summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.h
diff options
context:
space:
mode:
authorbisdhdh <biswajit.sadhu@gmail.com>2019-10-24 16:59:43 +0200
committerbisdhdh <biswajit.sadhu@gmail.com>2020-01-23 05:04:25 +0100
commit9e3b51a7f3d111e6c01424dae801501f7053bc60 (patch)
tree3cb2c80f6ed3950ac2034a85a367a8125b26be23 /bgpd/bgp_vty.h
parentbgpd: Added hidden CLI command to disable sending of End-of-Rib. (diff)
downloadfrr-9e3b51a7f3d111e6c01424dae801501f7053bc60.tar.xz
frr-9e3b51a7f3d111e6c01424dae801501f7053bc60.zip
bgpd: Restarting node does not send EOR after the convergence.
*After a restarting router comes up and the bgp session is successfully established with the peer. If the restarting router doesn’t have any route to send, it send EOR to the peer immediately before receiving updates from its peers. *Instead the restarting router should send EOR, if the selection deferral timer is not running OR count of eor received and eor required are matches then send EOR. Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r--bgpd/bgp_vty.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index 3f60c7719..3dc639ea7 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -68,6 +68,27 @@ struct bgp;
vty, p, use_json, json); \
} while (0)
+
+#define PRINT_EOR(_eor_flag) \
+ do { \
+ if (eor_flag) \
+ vty_out(vty, "Yes\n"); \
+ else \
+ vty_out(vty, "No\n"); \
+ } while (0)
+
+#define PRINT_EOR_JSON(_eor_flag) \
+ do { \
+ if (eor_flag) \
+ json_object_boolean_true_add( \
+ json_endofrib_status, \
+ "endOfRibSentAfterUpdate"); \
+ else \
+ json_object_boolean_false_add( \
+ json_endofrib_status, \
+ "endOfRibSentAfterUpdate"); \
+ } while (0)
+
extern void bgp_vty_init(void);
extern const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json);
extern int bgp_get_vty(struct bgp **bgp, as_t *as, const char *name,