summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-17 15:38:06 +0200
committerGitHub <noreply@github.com>2024-05-17 15:38:06 +0200
commit6b70110062190cae48770613d546ab89cb4c4de5 (patch)
tree7e66ffbee13af9cfe5db470336a6291e2d979845 /src/op_mode
parentd1b6b40891d84dca5c5b589e6708cd1452739e0f (diff)
parent1cba74f91a67348bc8e8ad3e2ef4325dc9f9d6e0 (diff)
downloadvyos-1x-6b70110062190cae48770613d546ab89cb4c4de5.tar.gz
vyos-1x-6b70110062190cae48770613d546ab89cb4c4de5.zip
Merge pull request #3471 from natali-rs1985/T6348-current
op mode: T6348: SNAT op-mode fails with flowtable offload entries
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/nat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/nat.py b/src/op_mode/nat.py
index 2bc7e24fe..4ab524fb7 100755
--- a/src/op_mode/nat.py
+++ b/src/op_mode/nat.py
@@ -263,7 +263,7 @@ def _get_formatted_translation(dict_data, nat_direction, family, verbose):
proto = meta['layer4']['protoname']
if direction == 'independent':
conn_id = meta['id']
- timeout = meta['timeout']
+ timeout = meta.get('timeout', 'n/a')
orig_src = f'{orig_src}:{orig_sport}' if orig_sport else orig_src
orig_dst = f'{orig_dst}:{orig_dport}' if orig_dport else orig_dst
reply_src = f'{reply_src}:{reply_sport}' if reply_sport else reply_src