Page MenuHomeVyOS Platform

output from "show vpn ipsec sa" bugged
Closed, DuplicatePublicBUG

Description

olof@rou001:~$ show vpn ipsec sa
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_ipsec_sa.py", line 86, in <module>
    hash = isa["integ-alg"].decode()
KeyError: 'integ-alg'

show vpn ipsec sa verbose output gives me what I want, with loads of verbosity
Version: VyOS 1.2.0-rolling+201904260337

Details

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

Event Timeline

As per request from dmbaturin on slack:

Could you give me the output of "sudo ipsec statusall"?

It gives me the same output as show vpn ipsec sa verbose

sudo ipsec status also works, but its not expected output.

expected output looks like this

olof@vpnrouter:~$ show vpn ipsec sa
Connection                      State    Up          Bytes In/Out    Remote address    Remote ID    Proposal
------------------------------  -------  ----------  --------------  ----------------  -----------  ------------------------------------------------
peer-22.133.242.174-tunnel-1    up       5 hours     4M/3M           22.133.242.174    N/A          AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
peer-123.123.123.170-tunnel-6   up       80 minutes  42K/26K         123.123.123.170   N/A          AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
peer-123.123.123.170-tunnel-3   up       80 minutes  0B/0B           123.123.123.170   N/A          AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
peer-33.222.111.218-tunnel-1    up       5 hours     2M/938K         33.222.111.218    N/A          AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).
dmbaturin closed this task as a duplicate of T1319: 'show vpn ipsec sa' throws errors .