diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-08-20 20:01:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 20:01:13 +0200 |
commit | aa8b8e574e44917f5bd1a777fc9b816fe9d1580c (patch) | |
tree | 6edbfc80ee233aff6475ddc5d9a74dcb5af123be /src/conf_mode/wireguard.py | |
parent | bd70e8b030121a95eb9f9abcbe137917329020b8 (diff) | |
parent | 2a4b380ecdf5c51a41dfee64652cd77789a8204c (diff) | |
download | vyos-1x-aa8b8e574e44917f5bd1a777fc9b816fe9d1580c.tar.gz vyos-1x-aa8b8e574e44917f5bd1a777fc9b816fe9d1580c.zip |
Merge pull request #38 from hagbard-01/current
T427, T783 minor bugfixes
Diffstat (limited to 'src/conf_mode/wireguard.py')
-rwxr-xr-x | src/conf_mode/wireguard.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/conf_mode/wireguard.py b/src/conf_mode/wireguard.py index e1c076e2a..a4f876397 100755 --- a/src/conf_mode/wireguard.py +++ b/src/conf_mode/wireguard.py @@ -209,13 +209,9 @@ def apply(c): if val_eff and not val: c['interfaces'][intf]['peer'][p]['persistent-keepalive'] = 0 - ### set ne keepalive value + ### set new keepalive value if not val_eff and val: c['interfaces'][intf]['peer'][p]['persistent-keepalive'] = val - - ## config == effective config, no change - if val_eff == val: - del c['interfaces'][intf]['peer'][p]['persistent-keepalive'] ## wg command call configure_interface(c,intf) |