diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-01-05 15:51:51 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-01-05 15:51:51 +0200 |
commit | ce3b0de1ab7bc026ecf66a9966ec59473fea53f7 (patch) | |
tree | ce83bceeb52e498030d4061251d64b6a6981eb6c /src/op_mode/show_ipsec_sa.py | |
parent | 9c93220286674fc590f8674506ec9adaae388652 (diff) | |
parent | c1423c71feae84a063f1674ed34d5981e685d6eb (diff) | |
download | vyos-1x-ce3b0de1ab7bc026ecf66a9966ec59473fea53f7.tar.gz vyos-1x-ce3b0de1ab7bc026ecf66a9966ec59473fea53f7.zip |
Merge branch 'current' into equuleus
Diffstat (limited to 'src/op_mode/show_ipsec_sa.py')
-rwxr-xr-x | src/op_mode/show_ipsec_sa.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py index e319cc38d..b7927fcc2 100755 --- a/src/op_mode/show_ipsec_sa.py +++ b/src/op_mode/show_ipsec_sa.py @@ -107,5 +107,6 @@ for sa in sas: sa_data.append(data) headers = ["Connection", "State", "Uptime", "Bytes In/Out", "Packets In/Out", "Remote address", "Remote ID", "Proposal"] +sa_data = sorted(sa_data, key=lambda peer: peer[0]) output = tabulate.tabulate(sa_data, headers) print(output) |