From 247fb57d63c6be82481bdde0b49f34a78be8bef6 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 7 Oct 2020 16:20:58 -0400 Subject: [PATCH] lib: consolidate evpn type help strings into macro Consolidate evpn type help strings into one single macro for use on commands that need to support all the types. Signed-off-by: Stephen Worley --- lib/command.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/command.h b/lib/command.h index 677d4b2dad..bb007b0868 100644 --- a/lib/command.h +++ b/lib/command.h @@ -462,6 +462,14 @@ struct cmd_node { #define EVPN_TYPE_3_HELP_STR "Multicast (Type-3) route\n" #define EVPN_TYPE_4_HELP_STR "Ethernet Segment (Type-4) route\n" #define EVPN_TYPE_5_HELP_STR "Prefix (Type-5) route\n" +#define EVPN_TYPE_ALL_LIST "" +#define EVPN_TYPE_ALL_LIST_HELP_STR \ + EVPN_TYPE_1_HELP_STR EVPN_TYPE_1_HELP_STR \ + EVPN_TYPE_2_HELP_STR EVPN_TYPE_2_HELP_STR \ + EVPN_TYPE_3_HELP_STR EVPN_TYPE_3_HELP_STR \ + EVPN_TYPE_4_HELP_STR EVPN_TYPE_4_HELP_STR \ + EVPN_TYPE_5_HELP_STR EVPN_TYPE_5_HELP_STR + /* Prototypes. */ extern void install_node(struct cmd_node *node); -- 2.39.5