summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-05-17 10:24:42 -0500
committerGitHub <noreply@github.com>2024-05-17 10:24:42 -0500
commitf612f8cf6e0e91c3322fb3c815b3e4702566e113 (patch)
tree4a135eff8d9edcdddfd6d3ce477b03b3c4f1fd24
parent9f8be3255e76f3fa4189f488a50c3296d45c4ba6 (diff)
parenta214c3967227f0f29c236e3bd78ad8e0914301af (diff)
downloadvyos-1x-f612f8cf6e0e91c3322fb3c815b3e4702566e113.tar.gz
vyos-1x-f612f8cf6e0e91c3322fb3c815b3e4702566e113.zip
Merge pull request #3478 from vyos/mergify/bp/sagitta/pr-3471
op mode: T6348: SNAT op-mode fails with flowtable offload entries (backport #3471)
-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