Page MenuHomeVyOS Platform

[wireguard] config changes cause an error
Closed, ResolvedPublicBUG

Description

When changing a wireguard config, it causes an error when the config items are being compared.

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/wireguard.py", line 370, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/wireguard.py", line 228, in apply
  addr_eff = re.sub("\'", "", c_eff.return_effective_values(intf + ' address')).split()
File "/usr/lib/python3.4/re.py", line 175, in sub
  return _compile(pattern, flags).sub(repl, string, count)

TypeError: expected string or buffer

interfaces wireguard wg01 failed
Commit failed

Details

Version
1.2, 1.3

Event Timeline

hagbard triaged this task as Normal priority.Jul 9 2019, 5:00 PM
hagbard edited a custom field.

Issue present in the 1.2.2 ISO, too

hagbard changed the task status from Unknown Status to Resolved.Jul 15 2019, 2:30 PM
hagbard moved this task from Need Triage to Finished on the VyOS 1.2 Crux board.