diff options
author | Vincent Bernat <vincent@bernat.im> | 2017-04-12 11:24:07 +0200 |
---|---|---|
committer | Vincent Bernat <vincent@bernat.im> | 2018-04-23 17:05:23 +0200 |
commit | bf1061d876951adf778c5d4da907cb6bd914cba4 (patch) | |
tree | e4c7729f6aaafc84eae6ab3c83b503440274ebd7 /bgpd/bgpd.h | |
parent | Merge pull request #2028 from qlyoung/cleanup-static-route-consistent-ordering (diff) | |
download | frr-bf1061d876951adf778c5d4da907cb6bd914cba4.tar.xz frr-bf1061d876951adf778c5d4da907cb6bd914cba4.zip |
bgpd: add an option for RT auto-derivation to use RFC 8635.
RFC 8635 explains how RT auto-derivation should be done in section
5.1.2.1 [1]. In addition to encoding the VNI in the lowest bytes, a
3-bit field is used to encode a namespace. For VXLAN, we have to put 1
in this field. This is needed for proper interoperability with RT
auto-derivation in JunOS. Since this would break existing setup, an
additional option, "autort rfc8365-compatible" is used.
[1]: https://tools.ietf.org/html/rfc8365#section-5.1.2.1
Signed-off-by: Vincent Bernat <vincent@bernat.im>
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r-- | bgpd/bgpd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 0c5f72662..7d5222120 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -423,6 +423,9 @@ struct bgp { /* EVPN enable - advertise local VNIs and their MACs etc. */ int advertise_all_vni; + /* EVPN - use RFC 8365 to auto-derive RT */ + int advertise_autort_rfc8365; + /* Hash table of Import RTs to EVIs */ struct hash *import_rt_hash; |