diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-29 20:14:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 20:14:05 +0200 |
commit | 63fe6b566ad38041aedc80ebc318af01566754a1 (patch) | |
tree | 4c1785d044ac599c7703c66b27a5c8f78315bbc8 | |
parent | 889e16a77517549fb833a90d047455533be02f06 (diff) | |
parent | 60b39c308cb7460bd956dea8a7e9be6461808557 (diff) | |
download | vyos-1x-63fe6b566ad38041aedc80ebc318af01566754a1.tar.gz vyos-1x-63fe6b566ad38041aedc80ebc318af01566754a1.zip |
Merge pull request #787 from jack9603301/T3055
op-mode: ipsec: T3055: Fixed parsing peer name error
-rwxr-xr-x | src/op_mode/show_ipsec_sa.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py index b7927fcc2..066e36b5e 100755 --- a/src/op_mode/show_ipsec_sa.py +++ b/src/op_mode/show_ipsec_sa.py @@ -70,6 +70,7 @@ for sa in sas: else: for csa in installed_sas: isa = installed_sas[csa] + csa_name = isa['name'] bytes_in = hurry.filesize.size(int(isa["bytes-in"].decode())) bytes_out = hurry.filesize.size(int(isa["bytes-out"].decode())) @@ -103,7 +104,7 @@ for sa in sas: if dh_group: proposal = "{0}/{1}".format(proposal, dh_group) - data = [peer, state, uptime, bytes_str, pkts_str, remote_host, remote_id, proposal] + data = [csa_name, state, uptime, bytes_str, pkts_str, remote_host, remote_id, proposal] sa_data.append(data) headers = ["Connection", "State", "Uptime", "Bytes In/Out", "Packets In/Out", "Remote address", "Remote ID", "Proposal"] |