diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-04 14:58:08 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-04 14:58:08 +0100 |
commit | 60b913c2f8a8eb21adee322a107de5a7ea8c1744 (patch) | |
tree | 9cdf7b5f85be2274013d3abeef04e141a0c5ce08 /src/conf_mode/protocols_bgp.py | |
parent | f89d51293fb276fe64367b3019004c3e53a79821 (diff) | |
download | vyos-1x-60b913c2f8a8eb21adee322a107de5a7ea8c1744.tar.gz vyos-1x-60b913c2f8a8eb21adee322a107de5a7ea8c1744.zip |
bgp: T4048: allow per VNI RD/RT configuration
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index b88f0c4ef..03fb17ba7 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -255,14 +255,6 @@ def verify(bgp): tmp = dict_search(f'route_map.vpn.{export_import}', afi_config) if tmp: verify_route_map(tmp, bgp) - if afi in ['l2vpn_evpn'] and 'vrf' not in bgp: - # Some L2VPN EVPN AFI options are only supported under VRF - if 'vni' in afi_config: - for vni, vni_config in afi_config['vni'].items(): - if 'rd' in vni_config: - raise ConfigError('VNI route-distinguisher is only supported under EVPN VRF') - if 'route_target' in vni_config: - raise ConfigError('VNI route-target is only supported under EVPN VRF') return None |