diff options
author | aapostoliuk <a.apostoliuk@vyos.io> | 2022-12-23 11:47:35 +0200 |
---|---|---|
committer | aapostoliuk <a.apostoliuk@vyos.io> | 2022-12-23 11:47:35 +0200 |
commit | c3ac2dc6941a3bee4e84ee4878da5771d1a79294 (patch) | |
tree | cc4fe6ba1f133506c826c9c22222d15c73e67690 /src/op_mode | |
parent | 54a1b3552eb294c192850c74d04f8769b0b92bc0 (diff) | |
download | vyos-1x-c3ac2dc6941a3bee4e84ee4878da5771d1a79294.tar.gz vyos-1x-c3ac2dc6941a3bee4e84ee4878da5771d1a79294.zip |
T4890: Fixed op_mode show conntrack table ipv4
Fixed op_mode show conntrack table ipv4
Created check on empty column "mark"
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/conntrack.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |