diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-24 18:36:02 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-24 18:36:02 +0200 |
commit | 63070fa61536687d18b1b4b962f54fa5c94d072f (patch) | |
tree | 595df2404e33ac2232a712f79e0518424250785d | |
parent | 4ff1bc23d40c53fc27e0b1f4c33cda0c18783d12 (diff) | |
download | vyos-1x-63070fa61536687d18b1b4b962f54fa5c94d072f.tar.gz vyos-1x-63070fa61536687d18b1b4b962f54fa5c94d072f.zip |
wireguard: T2244: rename lport to listen_port
-rwxr-xr-x | src/conf_mode/interfaces-wireguard.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-wireguard.py b/src/conf_mode/interfaces-wireguard.py index 423700370..5ceceb592 100755 --- a/src/conf_mode/interfaces-wireguard.py +++ b/src/conf_mode/interfaces-wireguard.py @@ -35,11 +35,11 @@ default_config_data = { 'address': [], 'address_remove': [], 'description': '', - 'lport': None, + 'listen_port': '', 'deleted': False, 'disable': False, 'is_bridge_member': False, - 'fwmark': 0x00, + 'fwmark': 0, 'mtu': 1420, 'peer': [], 'peer_remove': [], # stores public keys of peers to remove @@ -106,7 +106,7 @@ def get_config(): # local port to listen on if conf.exists(['port']): - wg['lport'] = conf.return_value(['port']) + wg['listen_port'] = conf.return_value(['port']) # fwmark value if conf.exists(['fwmark']): @@ -263,8 +263,8 @@ def apply(wg): # peer allowed-ips w.config['allowed-ips'] = peer['allowed-ips'] # local listen port - if wg['lport']: - w.config['port'] = wg['lport'] + if wg['listen_port']: + w.config['port'] = wg['listen_port'] # fwmark if c['fwmark']: w.config['fwmark'] = wg['fwmark'] |