summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/ifconfig/vxlan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/vxlan.py b/python/vyos/ifconfig/vxlan.py
index 03c4d4dba..2cff21f02 100644
--- a/python/vyos/ifconfig/vxlan.py
+++ b/python/vyos/ifconfig/vxlan.py
@@ -79,8 +79,9 @@ class VXLANIf(Interface):
cmdline.append('remote')
if self.config['group'] or self.config['source_interface']:
- if self.config['group'] and self.config['source_interface']:
+ if self.config['group']:
cmdline.append('group')
+ if self.config['source_interface']:
cmdline.append('source_interface')
else:
ifname = self.config['ifname']