From 852d9f97570045dc4186940d424c856995999fbb Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 26 Oct 2021 17:55:54 -0400 Subject: bgpd,zebra,lib: bgp evpn vni macip into two tables Re-work the bgp vni table to use separately keyed tables for type2 routes. So, with type2 routes, we have the main table keyed off of the IP and a new MAC table keyed off of MACs. By separating out the two, we are able to run path selection separately for the neigh and mac. Keeping the two separate is also more in-line with what happens in zebra (they are managed comptletely seperate). With this change type2 routes go into each table like so: ``` Remote MAC-IP -> IP Table & MAC Table Remote MAC -> MAC Table Local MAC-IP -> IP Table Local MAC -> MAC Table ``` The difference for local is necessary because we should not ever allow multiple paths for a local MAC. Also cleaned up the commands for querying the vni tables: ``` show bgp vni all type ... show bgp vni VNI type ... ``` Old commands will be deprecated in a separate commit. Signed-off-by: Stephen Worley --- lib/command.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index 70e52708a..b701d4d0e 100644 --- a/lib/command.h +++ b/lib/command.h @@ -404,6 +404,8 @@ struct cmd_node { #define SHOW_STR "Show running system information\n" #define IP_STR "IP information\n" #define IPV6_STR "IPv6 information\n" +#define IP_ADDR_STR "IPv4 Address\n" +#define IP6_ADDR_STR "IPv6 Address\n" #define SRTE_STR "SR-TE information\n" #define SRTE_COLOR_STR "SR-TE Color information\n" #define NO_STR "Negate a command or set its defaults\n" -- cgit v1.2.3