summaryrefslogtreecommitdiff
path: root/src/op_mode/show_ipsec_sa.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-01-05 15:51:51 +0200
committerDaniil Baturin <daniil@vyos.io>2021-01-05 15:51:51 +0200
commitce3b0de1ab7bc026ecf66a9966ec59473fea53f7 (patch)
treece83bceeb52e498030d4061251d64b6a6981eb6c /src/op_mode/show_ipsec_sa.py
parent9c93220286674fc590f8674506ec9adaae388652 (diff)
parentc1423c71feae84a063f1674ed34d5981e685d6eb (diff)
downloadvyos-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-xsrc/op_mode/show_ipsec_sa.py1
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)