summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-templates/ip/source-validation/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-templates/ip/source-validation/node.def b/interface-templates/ip/source-validation/node.def
index 89aab874..df7bcb8a 100644
--- a/interface-templates/ip/source-validation/node.def
+++ b/interface-templates/ip/source-validation/node.def
@@ -34,12 +34,12 @@ update:
fi
echo "Global value is $global"
fi
- if [ -d /sys/class/net/$VAR(../../@) ] ; then
+ if [ -d /sys/class/net/$IFNAME ] ; then
sudo sh -c "echo $new > \
/proc/sys/net/ipv4/conf/$IFNAME/rp_filter"
fi
delete:
- if [ -d /sys/class/net/$VAR(../../@) ] ; then
+ if [ -d /sys/class/net/$IFNAME ] ; then
sudo sh -c "echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/rp_filter"
fi