summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-08 17:33:04 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-08 17:33:07 +0100
commit377f616d20dbeeb6870374341e6d1ab430c4b08e (patch)
tree1bb9fadde4a57702f1c2470ffbf3c939895adde0
parent0ad41a72bde1f1a6fc538b6785ec5307a38c0233 (diff)
downloadvyos-1x-377f616d20dbeeb6870374341e6d1ab430c4b08e.tar.gz
vyos-1x-377f616d20dbeeb6870374341e6d1ab430c4b08e.zip
vrf: T31: fix invalid variable reference
With commit d61cab4 ("vrf: T31: enable vrf support for wireless interface") an unknown variable has been referenced.
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 3da057e91..3d4da10da 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -1406,9 +1406,9 @@ def apply(wifi):
# assign to VRF
if wifi['vrf']:
- d.add_vrf(wifi['vrf'])
+ w.add_vrf(wifi['vrf'])
else:
- d.del_vrf(wifi['vrf'])
+ w.del_vrf(wifi['vrf'])
# Change interface MAC address - re-set to real hardware address (hw-id)
# if custom mac is removed