diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-05 09:46:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 09:46:23 +0100 |
commit | 17a9c0f1a0b73c192a5d64372595ddcb4ae19d71 (patch) | |
tree | 2aadd3bde3fe9c56fcaa41cf58687a6ad8bbe8e2 | |
parent | 359ac4cb1b1503d3889e0b84893abdd00db62197 (diff) | |
parent | 15062083b270207c0c32e5297ef9099d21b3aa54 (diff) | |
download | vyos-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.py | 4 |
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 |