diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:19:04 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:19:04 +0200 |
commit | 7f5df3ea03fe410f781478aeffc201537756b040 (patch) | |
tree | dfcf9ac77e832e1bc68ea7f8aeb50fbea092dcec /templates/interfaces/vti | |
parent | ff172c743e5d732cad083c075c79485849913b4d (diff) | |
download | vyatta-cfg-system-7f5df3ea03fe410f781478aeffc201537756b040.tar.gz vyatta-cfg-system-7f5df3ea03fe410f781478aeffc201537756b040.zip |
T797: add sudo to ip command calls in other interface types.
Diffstat (limited to 'templates/interfaces/vti')
-rw-r--r-- | templates/interfaces/vti/node.def | 4 | ||||
-rw-r--r-- | templates/interfaces/vti/node.tag/disable/node.def | 4 | ||||
-rw-r--r-- | templates/interfaces/vti/node.tag/mtu/node.def | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/interfaces/vti/node.def b/templates/interfaces/vti/node.def index 0b369f82..5e8adb07 100644 --- a/templates/interfaces/vti/node.def +++ b/templates/interfaces/vti/node.def @@ -24,8 +24,8 @@ fi delete: if [ -d /sys/class/net/$VAR(@) ] ; then - ip link set $VAR(@) down - ip tunnel del $VAR(@) mode ipip + sudo ip link set $VAR(@) down + sudo ip tunnel del $VAR(@) mode ipip fi end: diff --git a/templates/interfaces/vti/node.tag/disable/node.def b/templates/interfaces/vti/node.tag/disable/node.def index 47600765..32fa4460 100644 --- a/templates/interfaces/vti/node.tag/disable/node.def +++ b/templates/interfaces/vti/node.tag/disable/node.def @@ -1,10 +1,10 @@ help: Disable interface update: if [ -d /sys/class/net/$VAR(../@) ] ; then - ip link set $VAR(../@) down + sudo ip link set $VAR(../@) down fi delete: if [ -d /sys/class/net/$VAR(../@) ] ; then - ip link set $VAR(../@) up + sudo ip link set $VAR(../@) up fi diff --git a/templates/interfaces/vti/node.tag/mtu/node.def b/templates/interfaces/vti/node.tag/mtu/node.def index 0ac0ed2f..fc6ecfab 100644 --- a/templates/interfaces/vti/node.tag/mtu/node.def +++ b/templates/interfaces/vti/node.tag/mtu/node.def @@ -6,9 +6,9 @@ val_help: u32:68-9000; Maximum Transmission Unit (MTU) update: if [ -d /sys/class/net/$VAR(../@) ] ; then - ip link set $VAR(../@) mtu $VAR(@) + sudo ip link set $VAR(../@) mtu $VAR(@) fi delete: if [ -d /sys/class/net/$VAR(../@) ] ; then - ip link set $VAR(../@) mtu 1500 + sudo ip link set $VAR(../@) mtu 1500 fi |