diff options
author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-13 12:19:52 +0100 |
---|---|---|
committer | mitesh <mitesh@cumulusnetworks.com> | 2018-01-24 00:58:53 +0100 |
commit | ead40654de7260c0b66061a41da1aac0c4febef7 (patch) | |
tree | bc3b3dc51547fbd8b9081def24a85b8b87e517d0 /bgpd/bgp_evpn_private.h | |
parent | Merge pull request #1618 from donaldsharp/zebra_startup_ordering (diff) | |
download | frr-ead40654de7260c0b66061a41da1aac0c4febef7.tar.xz frr-ead40654de7260c0b66061a41da1aac0c4febef7.zip |
bgpd/zebra/lib: Add Default Gateway extended community
1. Added default gw extended community
2. code modification to handle sticky-mac/default-gw-mac as they go together
3. show command support for newly added extended community
4. State in zebra to reflect if a mac/neigh is default gateway
5. show command enhancement to refelect the same in zebra commands
Ticket: CM-17428
Review: CCR-6580
Testing: Manual
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_evpn_private.h')
-rw-r--r-- | bgpd/bgp_evpn_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index 2d52e1995..f5a0998f6 100644 --- a/bgpd/bgp_evpn_private.h +++ b/bgpd/bgp_evpn_private.h @@ -257,6 +257,13 @@ static inline void encode_rmac_extcomm(struct ecommunity_val *eval, memcpy(&eval->val[2], rmac, ETH_ALEN); } +static inline void encode_default_gw_extcomm(struct ecommunity_val *eval) +{ + memset(eval, 0, sizeof(*eval)); + eval->val[0] = ECOMMUNITY_ENCODE_OPAQUE; + eval->val[1] = ECOMMUNITY_EVPN_SUBTYPE_DEF_GW; +} + static inline void encode_mac_mobility_extcomm(int static_mac, u_int32_t seq, struct ecommunity_val *eval) { |