From e860a84e2db9aa841ecf9eae2ba9cc586bddfa2e Mon Sep 17 00:00:00 2001
From: tjjh89017 <tjjh89017@hotmail.com>
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