diff options
author | Ruben Herold <ruben@insecure.pw> | 2020-02-20 20:40:00 +0100 |
---|---|---|
committer | Ruben Herold <ruben@insecure.pw> | 2020-02-20 20:40:00 +0100 |
commit | 8e1f6d1aaec2d931c6db0d520664ee79aece5f23 (patch) | |
tree | 452fe59f063366a9f72b2ee4ae90d4c87315bc42 | |
parent | 5a1060a21dbc478c1aaaa4711e66bc882eeae114 (diff) | |
download | vyatta-cfg-quagga-8e1f6d1aaec2d931c6db0d520664ee79aece5f23.tar.gz vyatta-cfg-quagga-8e1f6d1aaec2d931c6db0d520664ee79aece5f23.zip |
T2059: Fix setting source-validation for bond vif's
-rw-r--r-- | interface-templates/ip/source-validation/node.def | 4 |
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 |