diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-05 18:44:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-05 18:45:17 +0200 |
commit | 799b7f511248d68bbbe05e0dfd2aa4849fc32387 (patch) | |
tree | 8d5c7ceb2f35c7f74074920e886057dd8b4ced47 /data/templates/frr/policy.frr.j2 | |
parent | 0400f96c003ca0472a9e1786b5af20e4207b9e59 (diff) | |
download | vyos-1x-799b7f511248d68bbbe05e0dfd2aa4849fc32387.tar.gz vyos-1x-799b7f511248d68bbbe05e0dfd2aa4849fc32387.zip |
policy: T4414: add support for route-map "as-path prepend last-as x"
Diffstat (limited to 'data/templates/frr/policy.frr.j2')
-rw-r--r-- | data/templates/frr/policy.frr.j2 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/data/templates/frr/policy.frr.j2 b/data/templates/frr/policy.frr.j2 index 9f3097f82..f0a64cb89 100644 --- a/data/templates/frr/policy.frr.j2 +++ b/data/templates/frr/policy.frr.j2 @@ -238,11 +238,14 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }} {% if rule_config.set.aggregator.as is vyos_defined and rule_config.set.aggregator.ip is vyos_defined %} set aggregator as {{ rule_config.set.aggregator.as }} {{ rule_config.set.aggregator.ip }} {% endif %} -{% if rule_config.set.as_path_exclude is vyos_defined %} - set as-path exclude {{ rule_config.set.as_path_exclude }} +{% if rule_config.set.as_path.exclude is vyos_defined %} + set as-path exclude {{ rule_config.set.as_path.exclude }} {% endif %} -{% if rule_config.set.as_path_prepend is vyos_defined %} - set as-path prepend {{ rule_config.set.as_path_prepend }} +{% if rule_config.set.as_path.prepend is vyos_defined %} + set as-path prepend {{ rule_config.set.as_path.prepend }} +{% endif %} +{% if rule_config.set.as_path.prepend_last_as is vyos_defined %} + set as-path prepend last-as {{ rule_config.set.as_path.prepend_last_as }} {% endif %} {% if rule_config.set.atomic_aggregate is vyos_defined %} set atomic-aggregate |