diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-29 13:18:28 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-29 22:56:28 +0100 |
commit | ed67750b94e8bc779ec0e2cf6d568a3f7292de13 (patch) | |
tree | 73450aca20e9706b96d5574c758823d9e9ccb531 /python/vyos | |
parent | 0a0d4abc02da89f68d453495ec002d2afecfca7b (diff) | |
download | vyos-1x-ed67750b94e8bc779ec0e2cf6d568a3f7292de13.tar.gz vyos-1x-ed67750b94e8bc779ec0e2cf6d568a3f7292de13.zip |
firewall: T4218: Adds a prefix to all user defined chains
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/template.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py index 633b28ade..3675aef5d 100644 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -548,6 +548,7 @@ def nft_intra_zone_action(zone_conf, ipv6=False): if 'intra_zone_filtering' in zone_conf: intra_zone = zone_conf['intra_zone_filtering'] fw_name = 'ipv6_name' if ipv6 else 'name' + name_prefix = 'NAME6_' if ipv6 else 'NAME_' if 'action' in intra_zone: if intra_zone['action'] == 'accept': @@ -555,5 +556,5 @@ def nft_intra_zone_action(zone_conf, ipv6=False): return intra_zone['action'] elif dict_search_args(intra_zone, 'firewall', fw_name): name = dict_search_args(intra_zone, 'firewall', fw_name) - return f'jump {name}' + return f'jump {name_prefix}{name}' return 'return' |