summaryrefslogtreecommitdiff
path: root/src/conf_mode/nat.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-01 22:46:17 +0100
committerGitHub <noreply@github.com>2020-12-01 22:46:17 +0100
commita37c79216f6027bed7558223e3c9863c8a571a97 (patch)
treeb5ded34cf9fc8dd76eff98b0bdc72e8c730716df /src/conf_mode/nat.py
parent962bb24187e2bc0ef94f413da0e9e99f45c94ffa (diff)
parent4405bacdd5ef756b3d257f6d5d84b50daae328b0 (diff)
downloadvyos-1x-a37c79216f6027bed7558223e3c9863c8a571a97.tar.gz
vyos-1x-a37c79216f6027bed7558223e3c9863c8a571a97.zip
Merge pull request #628 from DmitriyEshenko/1x-fix-nat
nat: T3102: Check key in dictionary
Diffstat (limited to 'src/conf_mode/nat.py')
-rwxr-xr-xsrc/conf_mode/nat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py
index f5c023b81..1ccec3d2e 100755
--- a/src/conf_mode/nat.py
+++ b/src/conf_mode/nat.py
@@ -130,7 +130,7 @@ def verify(nat):
# no need to verify the CLI as NAT is going to be deactivated
return None
- if nat['helper_functions']:
+ if 'helper_functions' in nat:
if not (nat['pre_ct_ignore'] or nat['pre_ct_conntrack'] or nat['out_ct_ignore'] or nat['out_ct_conntrack']):
raise Exception('could not determine nftable ruleset handlers')