diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:10:13 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:31:23 +0100 |
commit | 86d49dbd7167c261fc6072694db7ee38206f1d94 (patch) | |
tree | cf7743df4a6af26ebcf31b5ade22dfb1b5010722 /src/conf_mode/policy-local-route.py | |
parent | 497f1866e71fadce33f9f19119f91a3c18263a70 (diff) | |
download | vyos-1x-86d49dbd7167c261fc6072694db7ee38206f1d94.tar.gz vyos-1x-86d49dbd7167c261fc6072694db7ee38206f1d94.zip |
vyos.configdict: node_changed() now accepts key mangling parameter
(cherry picked from commit 452a9c504f472dcaee8c93947a889dab4f8259ce)
Diffstat (limited to 'src/conf_mode/policy-local-route.py')
-rwxr-xr-x | src/conf_mode/policy-local-route.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/policy-local-route.py b/src/conf_mode/policy-local-route.py index c4024dce4..013f22665 100755 --- a/src/conf_mode/policy-local-route.py +++ b/src/conf_mode/policy-local-route.py @@ -40,7 +40,7 @@ def get_config(config=None): # delete policy local-route dict = {} - tmp = node_changed(conf, ['policy', 'local-route', 'rule']) + tmp = node_changed(conf, ['policy', 'local-route', 'rule'], key_mangling=('-', '_')) if tmp: for rule in (tmp or []): src = leaf_node_changed(conf, ['policy', 'local-route', 'rule', rule, 'source']) |