Skip to content

Commit

Permalink
Merge pull request #3478 from vyos/mergify/bp/sagitta/pr-3471
Browse files Browse the repository at this point in the history
op mode: T6348: SNAT op-mode fails with flowtable offload entries (backport #3471)
  • Loading branch information
jestabro authored May 17, 2024
2 parents 9f8be32 + a214c39 commit f612f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/op_mode/nat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f612f8c

Please sign in to comment.