diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-02 18:43:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 18:43:34 +0200 |
commit | cfbb8eae4786ffba5729deda46f5589b8d01b549 (patch) | |
tree | 224f679f213774274f159db40d40569097c6b728 /data/templates/frr/policy.frr.j2 | |
parent | 0f224ec009aed6184691da49b8aba5a53b162770 (diff) | |
parent | 33810487a8ea80cd2b44f144f761e54d6e2a7b8a (diff) | |
download | vyos-1x-cfbb8eae4786ffba5729deda46f5589b8d01b549.tar.gz vyos-1x-cfbb8eae4786ffba5729deda46f5589b8d01b549.zip |
Merge pull request #1975 from sever-sever/T5163
T5163: Add match protocol filter for route-map
Diffstat (limited to 'data/templates/frr/policy.frr.j2')
-rw-r--r-- | data/templates/frr/policy.frr.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.j2 b/data/templates/frr/policy.frr.j2 index 9b5e80aed..ed5876ae9 100644 --- a/data/templates/frr/policy.frr.j2 +++ b/data/templates/frr/policy.frr.j2 @@ -245,6 +245,10 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }} {% if rule_config.match.peer is vyos_defined %} match peer {{ rule_config.match.peer }} {% endif %} +{% if rule_config.match.protocol is vyos_defined %} +{% set source_protocol = 'ospf6' if rule_config.match.protocol == 'ospfv3' else rule_config.match.protocol %} + match source-protocol {{ source_protocol }} +{% endif %} {% if rule_config.match.rpki is vyos_defined %} match rpki {{ rule_config.match.rpki }} {% endif %} |