From e860a84e2db9aa841ecf9eae2ba9cc586bddfa2e Mon Sep 17 00:00:00 2001 From: tjjh89017 Date: Thu, 5 Mar 2020 15:51:36 +0800 Subject: ifconfig: T2101: Fix undefined reference variable in VXLANIf change `config['remote']` to `self.config['remote']` --- python/vyos/ifconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 7f03befeb..7140b1bbd 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -2020,7 +2020,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 -- cgit v1.2.3 From 15062083b270207c0c32e5297ef9099d21b3aa54 Mon Sep 17 00:00:00 2001 From: tjjh89017 Date: Thu, 5 Mar 2020 16:11:04 +0800 Subject: ifconfig: T2101: Fix VXLAN parsing empty config because of empty options fill VXLANIf.options for correct parsing --- python/vyos/ifconfig.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 7140b1bbd..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, -- cgit v1.2.3