diff options
author | Henning Surmeier <me@hensur.de> | 2022-04-06 13:25:35 +0200 |
---|---|---|
committer | Henning Surmeier <me@hensur.de> | 2022-04-06 13:29:18 +0200 |
commit | 45734d25f6b4f930fbc572be7ab247a377e179bf (patch) | |
tree | 3048a56867d849fa340f448232c51b14125e464b /src/conf_mode/policy-local-route.py | |
parent | 9fc6dba84177702e24fc6b8e6668f638ef156995 (diff) | |
download | vyos-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-x | src/conf_mode/policy-local-route.py | 4 |
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: |