Page MenuHomeVyOS Platform

sort output of show vpn ipsec sa
Open, Requires assessmentPublicFEATURE REQUEST

Description

I'd like to have the output of above command sorted. Every time I run it now (vyos 1.2.3) the output is in different order, making it hard to repeatedly checking status.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

olofl created this task.Jun 24 2020, 2:56 PM
pasik added a subscriber: pasik.Jun 24 2020, 7:25 PM

PR https://github.com/vyos/vyatta-op-vpn/pull/25

vyos@r4-roll:~$ show vpn ipsec sa
--------------------------  -------  --------  --------------  ----------------  ----------------  -----------  --------------
Connection                  State    Uptime    Bytes In/Out    Packets In/Out    Remote address    Remote ID    Proposal
peer-100.64.0.2-tunnel-vti  up       10m7s     0B/0B           0/0               100.64.0.2        N/A          AES_GCM_16_256
peer-100.64.1.2-tunnel-vti  up       10m7s     0B/0B           0/0               100.64.1.2        N/A          AES_GCM_16_256
peer-100.64.2.2-tunnel-vti  up       10m7s     0B/0B           0/0               100.64.2.2        N/A          AES_GCM_16_256
vyos@r4-roll:~$ 
vyos@r4-roll:~$ show vpn ipsec sa
--------------------------  -------  --------  --------------  ----------------  ----------------  -----------  --------------
Connection                  State    Uptime    Bytes In/Out    Packets In/Out    Remote address    Remote ID    Proposal
peer-100.64.0.2-tunnel-vti  up       10m9s     0B/0B           0/0               100.64.0.2        N/A          AES_GCM_16_256
peer-100.64.1.2-tunnel-vti  up       10m9s     0B/0B           0/0               100.64.1.2        N/A          AES_GCM_16_256
peer-100.64.2.2-tunnel-vti  up       10m9s     0B/0B           0/0               100.64.2.2        N/A          AES_GCM_16_256
vyos@r4-roll:~$ 
vyos@r4-roll:~$ show vpn ipsec sa
--------------------------  -------  --------  --------------  ----------------  ----------------  -----------  --------------
Connection                  State    Uptime    Bytes In/Out    Packets In/Out    Remote address    Remote ID    Proposal
peer-100.64.0.2-tunnel-vti  up       10m10s    0B/0B           0/0               100.64.0.2        N/A          AES_GCM_16_256
peer-100.64.1.2-tunnel-vti  up       10m10s    0B/0B           0/0               100.64.1.2        N/A          AES_GCM_16_256
peer-100.64.2.2-tunnel-vti  up       10m10s    0B/0B           0/0               100.64.2.2        N/A          AES_GCM_16_256
vyos@r4-roll:~$ 
vyos@r4-roll:~$