summaryrefslogtreecommitdiff
path: root/src/conf_mode/policy.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-09 17:14:05 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-09 17:14:05 +0200
commit3a0e586544fbe729f030d1950ea3ebebc454aa87 (patch)
tree6bea065eba369a624c5891ec69ec1bebbe89c318 /src/conf_mode/policy.py
parentbfffe55b2b7c620def4b26fbfc325c2ce3f31c59 (diff)
downloadvyos-1x-3a0e586544fbe729f030d1950ea3ebebc454aa87.tar.gz
vyos-1x-3a0e586544fbe729f030d1950ea3ebebc454aa87.zip
policy: T3812: FRR bgpd also knows about route-maps because of rpki
In order to alter rpki configuration we must also process the route-map nodes with/for bgpd.
Diffstat (limited to 'src/conf_mode/policy.py')
-rwxr-xr-xsrc/conf_mode/policy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/policy.py b/src/conf_mode/policy.py
index d56bae9e9..1a03d520b 100755
--- a/src/conf_mode/policy.py
+++ b/src/conf_mode/policy.py
@@ -190,6 +190,7 @@ def apply(policy):
frr_cfg.modify_section(r'^bgp community-list .*')
frr_cfg.modify_section(r'^bgp extcommunity-list .*')
frr_cfg.modify_section(r'^bgp large-community-list .*')
+ frr_cfg.modify_section(r'^route-map .*')
frr_cfg.add_before('^line vty', policy['new_frr_config'])
frr_cfg.commit_configuration(bgp_daemon)