Page MenuHomeVyOS Platform

Modify output to be more useful - Wireguard
Closed, ResolvedPublicFEATURE REQUEST

Description

There are some places our output can be rendered more useful. For example, running show interfaces wireguard wg0, the output contains zero information, like the user configured peer-name, description, tunnel status etc.

The attached pull request, addresses just the top level one show interfaces wireguard wg0. A few more lines would be needed to address the nested option.

This is an example of the output:

$ show interfaces wireguard wg0
interface: wg0
  Description: KROY
  public key: RIbtUTCfgzNjnLNPQ/ulkGnnB2vMWHm7l2H/xUfbyjc=
  private key: (hidden)
  listening port: 2224

peer: iMac-kroy
  Status: UP
  public key: F5MbW7ye7DsoxdOacrdhLPQIksjxN5UdNV+pGFHqehc=
  endpoint: xx.xx.xx.xx:53770
  allowed ips: 10.172.24.30/32, 2001:xxx:xxxx:2244::30/128
  latest handshake: 1 minute, 52 seconds ago
  transfer: 163.12 MiB received, 3.53 GiB sent
  persistent keepalive: every 15 seconds

peer: ERX-Test
  Status: DOWN
  public key: CF1CsALd2x8KuN6uIMTAYs0ZMtc0rRMEqw4rU2qY5Co=
  allowed ips: 10.172.24.60/32, 2001:xxx:xxxx:2244::60/128
  persistent keepalive: every 15 seconds

peer: iPhone-kroy
  Status: DOWN
  public key: BknHcLFo8nOo8Dwq2CjaC/TedchKQ0ebxC7GYn7Al00=
  allowed ips: 10.172.24.20/32, 2001:xxx:xxxx:2244::20/128
  persistent keepalive: every 15 seconds

peer: MBP-kroy
  Status: DOWN
  public key: HBbvhFP8+uR8KaS+O3mp1MQJn1bFKYpyPOHDILL8SHE=
  allowed ips: 10.172.24.40/32, 2001:xxx:xxxx:2244::40/128
  persistent keepalive: every 15 seconds

Details

Difficulty level
Easy (less than an hour)
Version
1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Improvement (missing useful functionality)

Event Timeline

kroy changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
kroy changed Version from - to 1.3.
hagbard changed the task status from Open to Needs testing.Oct 21 2019, 7:43 PM

https://github.com/vyos/vyos-1x/pull/149 merged. While I think the UP/DOWN status is a little brave. It leads users maybe to believe that the wg interface has really a up/down state.

erkin set Issue type to Improvement (missing useful functionality).Aug 31 2021, 6:28 PM