Page MenuHomeVyOS Platform

wireguard wg0 summary is broken
Closed, ResolvedPublic

Description

config example to reproduce:

set interfaces wireguard wg0 address '10.10.10.1/24'
set interfaces wireguard wg0 peer peer-one allowed-ips '10.10.10.3/32'
set interfaces wireguard wg0 peer peer-one public-key '/vrHy/xZhsDS43FuGm9ccE9qfRD5VRT7E/wDc6D+xgo='
set interfaces wireguard wg0 peer peer-two allowed-ips '10.10.10.2/32'
set interfaces wireguard wg0 peer peer-two public-key 'IBWCze46Fx9r4Qt7tM7HbQJur3D9Tf2tFcm7AKqx7gM='
set interfaces wireguard wg0 port '3001'
set interfaces wireguard wg0 private-key '8JPCckb2U95nNgsJSPJn7pIJgBHgsDtewdJfD0FI8UU='
# run show interfaces wireguard wg0 summary 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 48, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 312, in run
    res = func(**args)
          ^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 35, in _wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/interfaces_wireguard.py", line 43, in show_summary
    return intf.operational.show_interface()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WireGuardOperational' object has no attribute 'show_interface'. Did you mean: 'set_interface'?
# run show version 
Version:          VyOS 1.5-rolling-202502190007
Release train:    current
Release flavor:   generic

Built by:         autobuild@vyos.net
Built on:         Wed 19 Feb 2025 00:07 UTC
Build UUID:       fde6953f-72e0-4502-83d0-2a7ded0a4ce7
Build commit ID:  48fb37eca39bd9

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest
Secure Boot:      n/a (BIOS)

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     
Hardware UUID:    0f8ce925-67f9-42e2-be62-81e646d062d3

Copyright:        VyOS maintainers and contributors

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

HollyGurza created this object in space S1 VyOS Public.
HollyGurza updated the task description. (Show Details)

retested on VyOS 2025.06.06-0019-rolling works correct

# run show interfaces wireguard wg0 summary 
interface: wg0
  address: 10.10.10.1/24
  public key: xotG5TMkK2Pfm8CakOkEvPLE9i3OhSrUuBMMqlUTDB8=
  private key: (hidden)
  listening port: 3001

  peer: client3
    public key: /vrHy/xZhsDS43FuGm7ccE9qfRD5VRT7E/wdc6D+xgo=
    allowed ips: 10.10.10.3/32

  peer: client2
    public key: IBQCze64Fx8r4Qt8tM7HbQJur3D9Tf2tFcm7AKqx7gM=
    allowed ips: 10.10.10.2/32

  peer: client1
    public key: MpaW3r9/58awtx+I3YeZ1P+Uxng2CCtmczeNWdoBbWE=
    allowed ips: 10.10.10.5/32
Viacheslav claimed this task.
Viacheslav subscribed.

@HollyGurza thanks, fixed in the T7123