From c3ac2dc6941a3bee4e84ee4878da5771d1a79294 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Fri, 23 Dec 2022 11:47:35 +0200 Subject: T4890: Fixed op_mode show conntrack table ipv4 Fixed op_mode show conntrack table ipv4 Created check on empty column "mark" --- src/op_mode/conntrack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/op_mode') diff --git a/src/op_mode/conntrack.py b/src/op_mode/conntrack.py index fff537936..df213cc5a 100755 --- a/src/op_mode/conntrack.py +++ b/src/op_mode/conntrack.py @@ -116,7 +116,7 @@ def get_formatted_output(dict_data): reply_src = f'{reply_src}:{reply_sport}' if reply_sport else reply_src reply_dst = f'{reply_dst}:{reply_dport}' if reply_dport else reply_dst state = meta['state'] if 'state' in meta else '' - mark = meta['mark'] + mark = meta['mark'] if 'mark' in meta else '' zone = meta['zone'] if 'zone' in meta else '' data_entries.append( [conn_id, orig_src, orig_dst, reply_src, reply_dst, proto, state, timeout, mark, zone]) -- cgit v1.2.3