summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-05 09:46:23 +0100
committerGitHub <noreply@github.com>2020-03-05 09:46:23 +0100
commit17a9c0f1a0b73c192a5d64372595ddcb4ae19d71 (patch)
tree2aadd3bde3fe9c56fcaa41cf58687a6ad8bbe8e2
parent359ac4cb1b1503d3889e0b84893abdd00db62197 (diff)
parent15062083b270207c0c32e5297ef9099d21b3aa54 (diff)
downloadvyos-1x-17a9c0f1a0b73c192a5d64372595ddcb4ae19d71.tar.gz
vyos-1x-17a9c0f1a0b73c192a5d64372595ddcb4ae19d71.zip
Merge pull request #241 from tjjh89017/fix_vxlan_config
ifconfig: T2101: Fix VXLAN config option parsing
-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