diff options
author | hagbard <vyosdev@derith.de> | 2019-10-01 12:52:09 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-10-01 12:52:09 -0700 |
commit | cf499f958423919264884e9f1c5c1b593fd9de0e (patch) | |
tree | c8eb6fb99878e648d01b34a690d868c3eb48b98c /src | |
parent | 46895f5a527f610fa8f703d5e29c1fe5c7fe4438 (diff) | |
download | vyos-1x-cf499f958423919264884e9f1c5c1b593fd9de0e.tar.gz vyos-1x-cf499f958423919264884e9f1c5c1b593fd9de0e.zip |
[wireguard] - T1706: wireguard broken in latest rolling
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interface-wireguard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/interface-wireguard.py b/src/conf_mode/interface-wireguard.py index 0be8b7b0f..0dcce6b1c 100755 --- a/src/conf_mode/interface-wireguard.py +++ b/src/conf_mode/interface-wireguard.py @@ -224,10 +224,10 @@ def apply(c): intfc.add_addr(ip) # interface mtu - intfc.mtu = int(c['mtu']) + intfc.set_mtu(int(c['mtu'])) # ifalias for snmp from description - intfc.ifalias = str(c['descr']) + intfc.set_alias(str(c['descr'])) # remove peers if c['peer_remove']: @@ -267,7 +267,7 @@ def apply(c): intfc.update() # interface state - intfc.state = c['state'] + intfc.set_state(c['state']) return None |