summaryrefslogtreecommitdiff
path: root/src/conf_mode/policy-local-route.py
diff options
context:
space:
mode:
authorHenning Surmeier <me@hensur.de>2022-04-06 13:25:35 +0200
committerHenning Surmeier <me@hensur.de>2022-04-06 13:29:18 +0200
commit45734d25f6b4f930fbc572be7ab247a377e179bf (patch)
tree3048a56867d849fa340f448232c51b14125e464b /src/conf_mode/policy-local-route.py
parent9fc6dba84177702e24fc6b8e6668f638ef156995 (diff)
downloadvyos-1x-45734d25f6b4f930fbc572be7ab247a377e179bf.tar.gz
vyos-1x-45734d25f6b4f930fbc572be7ab247a377e179bf.zip
correctly set fwmk from current config on removals, fix smoketest
Diffstat (limited to 'src/conf_mode/policy-local-route.py')
-rwxr-xr-xsrc/conf_mode/policy-local-route.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/policy-local-route.py b/src/conf_mode/policy-local-route.py
index 3f834f55c..c32463d04 100755
--- a/src/conf_mode/policy-local-route.py
+++ b/src/conf_mode/policy-local-route.py
@@ -100,14 +100,14 @@ def get_config(config=None):
rule_def = dict_merge({'source' : src}, rule_def)
if fwmk is None:
if 'fwmark' in rule_config:
- rule_def = dict_merge({'fwmark': rule_config['fwmark']}, rule_def)
+ rule_def = dict_merge({'fwmark': [rule_config['fwmark']]}, rule_def)
else:
changed = True
if len(fwmk) > 0:
rule_def = dict_merge({'fwmark' : fwmk}, rule_def)
if iif is None:
if 'inbound_interface' in rule_config:
- rule_def = dict_merge({'inbound_interface': rule_config['inbound_interface']}, rule_def)
+ rule_def = dict_merge({'inbound_interface': [rule_config['inbound_interface']]}, rule_def)
else:
changed = True
if len(iif) > 0: