summaryrefslogtreecommitdiff
path: root/src/op_mode/nat.py
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-05-17 10:56:52 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-17 13:38:53 +0000
commita214c3967227f0f29c236e3bd78ad8e0914301af (patch)
tree478628e20d97f2ffb047c0527a8af76feda2f638 /src/op_mode/nat.py
parentbadc6a27571b4af04f80cda4bae6931ed9d8c286 (diff)
downloadvyos-1x-a214c3967227f0f29c236e3bd78ad8e0914301af.tar.gz
vyos-1x-a214c3967227f0f29c236e3bd78ad8e0914301af.zip
op mode: T6348: SNAT op-mode fails with flowtable offload entries
(cherry picked from commit 1cba74f91a67348bc8e8ad3e2ef4325dc9f9d6e0)
Diffstat (limited to 'src/op_mode/nat.py')
-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