diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-28 15:59:49 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-28 15:59:49 +0200 |
commit | 1c83615492b626f4d897a6a0fda9324353aae416 (patch) | |
tree | c094722d5093d2de64963aae1d0f61ea8b866e12 | |
parent | 8ef017a3496467433c311af63116af7657c58037 (diff) | |
download | vyos-1x-1c83615492b626f4d897a6a0fda9324353aae416.tar.gz vyos-1x-1c83615492b626f4d897a6a0fda9324353aae416.zip |
ipsec: T5042: fix remote-access "Tunnel IP" column
Connection ID Username Protocol State Uptime Tunnel IP
--------------- ---------- ---------- ------- -------- -----------------
27 cpo IKEv2 UP 11s ['172.16.222.17']
"Tunnel IP" should be a string over list.
-rwxr-xr-x | src/op_mode/ipsec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/ipsec.py b/src/op_mode/ipsec.py index db4948d7a..823bd039d 100755 --- a/src/op_mode/ipsec.py +++ b/src/op_mode/ipsec.py @@ -729,7 +729,7 @@ def _get_formatted_output_ra_summary(ra_output_list: list): sa_remotehost = sa['remote-host'] if 'remote-host' in sa else '' sa_remoteid = sa['remote-id'] if 'remote-id' in sa else '' sa_ike_proposal = _get_formatted_ike_proposal(sa) - sa_tunnel_ip = sa['remote-vips'] + sa_tunnel_ip = sa['remote-vips'][0] child_sa_key = _get_last_installed_childsa(sa) if child_sa_key: child_sa = sa['child-sas'][child_sa_key] |