Why does the system not allow setting individual rd and rt settings for each vni? FRR lets you do it.
After applying this patch I can create the required configuration:
--- /usr/libexec/vyos/conf_mode/protocols_bgp.py.orig 2021-12-03 15:33:10.137135615 +0000
+++ /usr/libexec/vyos/conf_mode/protocols_bgp.py 2021-12-03 15:33:24.355102005 +0000
@@ -255,15 +255,6 @@
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
show protocols
bgp {
address-family {
l2vpn-evpn {
advertise-all-vni
vni 100 {
advertise-svi-ip
rd 64524:100
route-target {
export 64512:1
import 64590:100
}
}