BGP L2VPN / EVPN and individual RD and RT settings for each VNI

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
                 }
             }

Do you say it’s only support in the first vni ? if there is more than one , is it allow ? what version do you use ?

I am using version 1.4-rolling-202111281249. I get an error ‘VNI route-distinguisher is only supported under EVPN VRF’ when I try to set RD to VNI.

I’ve been checking on FRR’s documentation and those commands aren’t document . link below:
http://docs.frrouting.org/en/latest/bgp.html#ethernet-virtual-network-evpn

but if you check this task
https://phabricator.vyos.net/T1513

explains why it shows that output

Bug tracked via ⚓ T4048 BGP: L2VPN/EVPN and individual RD and RT settings for each VNI

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.