summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-17 22:55:02 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-17 22:55:02 +0200
commit183130bcfa3c6bf5dbf73c38c1609c7b6bf21d3f (patch)
treec86c0fb198a3d560e6f6749cd803563f92165362 /src/conf_mode/interfaces-openvpn.py
parent60109764cc18ae50802313716ce9197c9bd36e15 (diff)
parentb90041af38c1d872210d3720c258721247d313a5 (diff)
downloadvyos-1x-183130bcfa3c6bf5dbf73c38c1609c7b6bf21d3f.tar.gz
vyos-1x-183130bcfa3c6bf5dbf73c38c1609c7b6bf21d3f.zip
Merge branch 'bridge' of github.com:c-po/vyos-1x into current
* 'bridge' of github.com:c-po/vyos-1x: smoketest: add IPv6 option tests to BasicInterfaceTest ifconfig: T2985: support on demand bridge creation geneve: T1799: add IPv6 CLI options op-mode: add "show arp" command
Diffstat (limited to 'src/conf_mode/interfaces-openvpn.py')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 518dbdc0e..f2b580c6f 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -208,7 +208,8 @@ def get_config(config=None):
openvpn['auth_user_pass_file'] = f"/run/openvpn/{openvpn['intf']}.pw"
# check if interface is member of a bridge
- openvpn['is_bridge_member'] = is_member(conf, openvpn['intf'], 'bridge')
+ tmp = is_member(conf, openvpn['intf'], 'bridge')
+ if tmp: openvpn['is_bridge_member'] = next(iter(tmp))
# Check if interface instance has been removed
if not conf.exists('interfaces openvpn ' + openvpn['intf']):