summaryrefslogtreecommitdiff
path: root/data/templates/wwan/ip-down.script.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-04 14:45:19 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-04 14:45:19 +0200
commit98a13584416f133075f2ace11c1c4967662a15ac (patch)
treef6c5a8c6fdbf8f97354610a9b2791ec1af5fb72b /data/templates/wwan/ip-down.script.tmpl
parent1dd5728a0612658107d9a9afa5b99702d0bd6c51 (diff)
downloadvyos-1x-98a13584416f133075f2ace11c1c4967662a15ac.tar.gz
vyos-1x-98a13584416f133075f2ace11c1c4967662a15ac.zip
wwan: T2219: bugfix referencing wlm0 variable instead of real Python var
Diffstat (limited to 'data/templates/wwan/ip-down.script.tmpl')
-rw-r--r--data/templates/wwan/ip-down.script.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/wwan/ip-down.script.tmpl b/data/templates/wwan/ip-down.script.tmpl
index e9c518433..194f8d863 100644
--- a/data/templates/wwan/ip-down.script.tmpl
+++ b/data/templates/wwan/ip-down.script.tmpl
@@ -12,7 +12,7 @@ fi
VRF_NAME=""
if [ -d /sys/class/net/{{ intf }}/upper_* ]; then
# Determine upper (VRF) interface
- VRF=$(basename $(ls -d /sys/class/net/wlm0/upper_*))
+ VRF=$(basename $(ls -d /sys/class/net/{{ intf }}/upper_*))
# Remove upper_ prefix from result string
VRF=${VRF#"upper_"}
# Populate variable to run in VR context