From d0f699b5057016144d702084ef182198872e13f5 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Thu, 26 Mar 2020 06:20:07 -0700 Subject: [PATCH] lib: MAC-IP flags used by zebra and BGP for SYNC route handling 1. BGP informs zebra if a MAC-IP is a SYNC path and if it active on the ES peer. 2. Zebra sends paths that are "local-inactive" with the proxy flag to BGP. Signed-off-by: Anuradha Karuppiah --- lib/zclient.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/zclient.h b/lib/zclient.h index 962ffb1067..da06239d01 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -607,6 +607,11 @@ zapi_rule_notify_owner2str(enum zapi_rule_notify_owner note) #define ZEBRA_MACIP_TYPE_ROUTER_FLAG 0x04 /* Router Flag - proxy NA */ #define ZEBRA_MACIP_TYPE_OVERRIDE_FLAG 0x08 /* Override Flag */ #define ZEBRA_MACIP_TYPE_SVI_IP 0x10 /* SVI MAC-IP */ +#define ZEBRA_MACIP_TYPE_PROXY_ADVERT 0x20 /* Not locally active */ +#define ZEBRA_MACIP_TYPE_SYNC_PATH 0x40 /* sync path */ +/* XXX - flags is an u8; that needs to be changed to u32 if you need + * to allocate past 0x80 + */ enum zebra_neigh_state { ZEBRA_NEIGH_INACTIVE = 0, ZEBRA_NEIGH_ACTIVE = 1 }; -- 2.39.5