summaryrefslogtreecommitdiff
path: root/src/op_mode/vpn_ike_sa.py
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2024-02-16 21:00:59 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-17 08:39:04 +0000
commit3504c908ccf0256fad37179cf98d1db2aabe581e (patch)
tree22e7b4e562c6cc77881b5837164ba5e06b5e4e41 /src/op_mode/vpn_ike_sa.py
parentdb8b115301d5476151e7d0910ba674a683683122 (diff)
downloadvyos-1x-3504c908ccf0256fad37179cf98d1db2aabe581e.tar.gz
vyos-1x-3504c908ccf0256fad37179cf98d1db2aabe581e.zip
T3722: Fixed L-Time in 'show vpn ike sa' command
Fixed L-Time in 'show vpn ike sa' command (cherry picked from commit bb6e6fc2119584df6ec571e7e9335dc509d5faeb)
Diffstat (limited to 'src/op_mode/vpn_ike_sa.py')
-rwxr-xr-xsrc/op_mode/vpn_ike_sa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/vpn_ike_sa.py b/src/op_mode/vpn_ike_sa.py
index 069c12069..7186bdec2 100755
--- a/src/op_mode/vpn_ike_sa.py
+++ b/src/op_mode/vpn_ike_sa.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2021 VyOS maintainers and contributors
+# Copyright (C) 2021-2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -57,7 +57,7 @@ def ike_sa(peer, nat):
dh_group = s(sa['dh-group']) if 'dh-group' in sa else 'n/a'
natt = 'yes' if 'nat-local' in sa and s(sa['nat-local']) == 'yes' else 'no'
atime = s(sa['established']) if 'established' in sa else '0'
- ltime = s(sa['rekey-time']) if 'rekey_time' in sa else '0'
+ ltime = s(sa['rekey-time']) if 'rekey-time' in sa else '0'
print(ike_sa_tunnel_prefix)
print(' %-6s %-6s %-12s %-13s %-14s %-6s %-7s %-7s\n' % (state, version, encryption, integrity, dh_group, natt, atime, ltime))