Skip to content

Commit

Permalink
op mode: T6348: SNAT op-mode fails with flowtable offload entries
Browse files Browse the repository at this point in the history
(cherry picked from commit 1cba74f)
  • Loading branch information
natali-rs1985 authored and mergify[bot] committed May 17, 2024
1 parent badc6a2 commit a214c39
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 a214c39

Please sign in to comment.