summaryrefslogtreecommitdiff
path: root/src/conf_mode/zone_policy.py
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-06-01 11:53:18 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-06-11 15:08:45 +0200
commit8ba45cfcc1cc3fba57e1f82fa1299b7c253ba5ea (patch)
tree37068db2932e20ed4aec01329c9e60d16eb769ed /src/conf_mode/zone_policy.py
parentfe18efba34c5d95d3052c9e6fda69668bbfe63f3 (diff)
downloadvyos-1x-8ba45cfcc1cc3fba57e1f82fa1299b7c253ba5ea.tar.gz
vyos-1x-8ba45cfcc1cc3fba57e1f82fa1299b7c253ba5ea.zip
firewall: T4299: Add support for GeoIP filtering
Diffstat (limited to 'src/conf_mode/zone_policy.py')
-rwxr-xr-xsrc/conf_mode/zone_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/zone_policy.py b/src/conf_mode/zone_policy.py
index 070a4deea..a52c52706 100755
--- a/src/conf_mode/zone_policy.py
+++ b/src/conf_mode/zone_policy.py
@@ -155,7 +155,7 @@ def get_local_from(zone_policy, local_zone_name):
def cleanup_commands():
commands = []
for table in ['ip filter', 'ip6 filter']:
- json_str = cmd(f'nft -j list table {table}')
+ json_str = cmd(f'nft -t -j list table {table}')
obj = loads(json_str)
if 'nftables' not in obj:
continue