diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-11 21:11:48 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-11 21:13:21 +0200 |
commit | 8681a62fbb413ad3a613ebedb430919a940beef7 (patch) | |
tree | 6821c5e5bef5999d6f14577e6871c5164bc9ca33 /data/templates/frr/policy.frr.tmpl | |
parent | b95403a7b4a6a220e41ef27b5247065eff782fd3 (diff) | |
download | vyos-1x-8681a62fbb413ad3a613ebedb430919a940beef7.tar.gz vyos-1x-8681a62fbb413ad3a613ebedb430919a940beef7.zip |
bgp: evpn: T3739: add prefix-list match support
FRR 7.5.1 supports:
vyos(config-route-map)# match evpn
default-route default EVPN type-5 route
rd Route Distinguisher
route-type Match route-type
vni Match VNI
This commit adds a proper VyOS CLI abstraction.
Diffstat (limited to 'data/templates/frr/policy.frr.tmpl')
-rw-r--r-- | data/templates/frr/policy.frr.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl index b5649b44e..89bd558dc 100644 --- a/data/templates/frr/policy.frr.tmpl +++ b/data/templates/frr/policy.frr.tmpl @@ -165,6 +165,18 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }} {% if rule_config.match.extcommunity is defined and rule_config.match.extcommunity is not none %} match extcommunity {{ rule_config.match.extcommunity }} {% endif %} +{% if rule_config.match.evpn is defined and rule_config.match.evpn.default_route is defined %} + match evpn default-route +{% endif %} +{% if rule_config.match.evpn is defined and rule_config.match.evpn.rd is defined and rule_config.match.evpn.rd is not none %} + match evpn rd {{ rule_config.match.evpn.rd }} +{% endif %} +{% if rule_config.match.evpn is defined and rule_config.match.evpn.route_type is defined and rule_config.match.evpn.route_type is not none %} + match evpn route-type {{ rule_config.match.evpn.route_type }} +{% endif %} +{% if rule_config.match.evpn is defined and rule_config.match.evpn.vni is defined and rule_config.match.evpn.vni is not none %} + match evpn vni {{ rule_config.match.evpn.vni }} +{% endif %} {% if rule_config.match.interface is defined and rule_config.match.interface is not none %} match interface {{ rule_config.match.interface }} {% endif %} |