summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/ifconfig.py')
-rw-r--r--python/vyos/ifconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 7f03befeb..c280b42af 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -2002,6 +2002,8 @@ class VXLANIf(Interface):
https://www.kernel.org/doc/Documentation/networking/vxlan.txt
"""
+ options = ['group', 'remote', 'dev', 'port', 'vni']
+
default = {
'type': 'vxlan',
'vni': 0,
@@ -2020,7 +2022,7 @@ class VXLANIf(Interface):
group = 'group {}'.format(self.config['group'])
# if remote host is specified we ignore the multicast address
- if config['remote']:
+ if self.config['remote']:
group = 'remote {}'.format(self.config['remote'])
# an underlay device is not always specified