diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2016-10-27 08:02:36 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2017-02-14 13:58:59 +0100 |
commit | 3da6fcd55711c5226fc2a29738ad886155d94bc5 (patch) | |
tree | ef43da8f20e90d76922bd04f7389fd98b2b712ed /bgpd/bgp_attr_evpn.h | |
parent | bgpd: vty commands added for EVPN address family (diff) | |
download | frr-3da6fcd55711c5226fc2a29738ad886155d94bc5.tar.xz frr-3da6fcd55711c5226fc2a29738ad886155d94bc5.zip |
bgpd: enhance network command for evpn route type 5
A new vty command available under evpn address family. This command
takes following format:
(af-evpn)# [no] network <A.B.C.D/M|X:X::X:X/M> rd ASN:nn_or_IP-address:nn ethtag WORD
label WORD esi WORD gwip A.B.C.D routermac WORD
[route-map WORD]
Among new parameters, ethtag stands for the ethernet tag indentifier.
ESI stands for the ethernet segment identifier, and must be entered in
following format: 00:11:22:33:44:55:66:77:88:99.
gwip stands for the gateway IP address contained in RT5 message. A
check is done on that value since if gwip is ipv4, then ip prefix must
be ipv4. The same for ipv6.
RouterMAc is the gateway mac address sent as extended community
attribute.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_attr_evpn.h')
-rw-r--r-- | bgpd/bgp_attr_evpn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr_evpn.h b/bgpd/bgp_attr_evpn.h index 6a779aefb..89a666ba2 100644 --- a/bgpd/bgp_attr_evpn.h +++ b/bgpd/bgp_attr_evpn.h @@ -60,5 +60,5 @@ extern char *mac2str (char *mac); extern char *ecom_mac2str(char *ecom_mac); extern void bgp_add_routermac_ecom (struct attr* attr, char * routermac); - +extern int bgp_build_evpn_prefix (int type, uint32_t eth_tag, struct prefix *dst); #endif /* _QUAGGA_BGP_ATTR_EVPN_H */ |