summaryrefslogtreecommitdiff
path: root/interface-templates
diff options
context:
space:
mode:
authorRuben Herold <ruben@insecure.pw>2020-02-20 20:40:00 +0100
committerRuben Herold <ruben@insecure.pw>2020-02-20 20:40:00 +0100
commit8e1f6d1aaec2d931c6db0d520664ee79aece5f23 (patch)
tree452fe59f063366a9f72b2ee4ae90d4c87315bc42 /interface-templates
parent5a1060a21dbc478c1aaaa4711e66bc882eeae114 (diff)
downloadvyatta-cfg-quagga-8e1f6d1aaec2d931c6db0d520664ee79aece5f23.tar.gz
vyatta-cfg-quagga-8e1f6d1aaec2d931c6db0d520664ee79aece5f23.zip
T2059: Fix setting source-validation for bond vif's
Diffstat (limited to 'interface-templates')
-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