Page MenuHomeVyOS Platform

MPLS config removed at boot when wireguard interfaces present
Closed, ResolvedPublicBUG

Description

Upon reboot, mpls configuration is removed when wireguard interfaces are present in the mpls/ldp configuration.

Relevant config:

set interfaces wireguard wg1000 address '100.120.0.2/30'
set interfaces wireguard wg1000 description 'IX:sea01-vpnpe-01:wg1000'
set interfaces wireguard wg1000 ip adjust-mss '1260'
set interfaces wireguard wg1000 mtu '1300'
set interfaces wireguard wg1000 peer sea01-vpnpe-01 address 'redacted'
set interfaces wireguard wg1000 peer sea01-vpnpe-01 allowed-ips '0.0.0.0/0'
set interfaces wireguard wg1000 peer sea01-vpnpe-01 port 'redacted'
set interfaces wireguard wg1000 peer sea01-vpnpe-01 public-key 'redacted'
set interfaces wireguard wg1000 port 'redacted'
set interfaces wireguard wg1000 private-key 'redacted'
set interfaces wireguard wg1001 address '100.120.0.6/30'
set interfaces wireguard wg1001 description 'IX:sea01-vpnpe-02:wg1000'
set interfaces wireguard wg1001 ip adjust-mss '1260'
set interfaces wireguard wg1001 mtu '1300'
set interfaces wireguard wg1001 peer sea01-vpnpe-02 address 'redacted'
set interfaces wireguard wg1001 peer sea01-vpnpe-02 allowed-ips '0.0.0.0/0'
set interfaces wireguard wg1001 peer sea01-vpnpe-02 port 'redacted'
set interfaces wireguard wg1001 peer sea01-vpnpe-02 public-key 'redacted'
set interfaces wireguard wg1001 port 'redacted'
set interfaces wireguard wg1001 private-key 'redacted'

set protocols mpls interface 'wg1000'
set protocols mpls interface 'wg1001'
set protocols mpls interface 'eth1'
set protocols mpls interface 'dum0'
set protocols mpls ldp discovery transport-ipv4-address '100.64.9.255'
set protocols mpls ldp interface 'eth1'
set protocols mpls ldp interface 'wg1000'
set protocols mpls ldp interface 'wg1001'
set protocols mpls ldp interface 'dum0'
set protocols mpls ldp router-id '100.64.9.255'

Perhaps this is related to the wireguard priority being lower than the mpls priority?

/opt/vyatta/sbin/priority.pl | grep -E "mpls|wireguard"
400 protocols/mpls
459 interfaces/wireguard

if wg interfaces are removed from the MPLS and LDP configuration, the MPLS config applies at boot and all is well. Applying the MPLS configuration after boot also returns the device to service.

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202305261003
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)