diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:26:41 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:26:41 +0200 |
commit | ce5f972dee9f92cd4d79fc8ffb3e169e9164757f (patch) | |
tree | 1a7b35d9f5b1740e5b97fdbd44be72e72741f827 | |
parent | f0a01317434abf9e9f6be37efa5bca7095c35bf5 (diff) | |
download | vyatta-cfg-qos-ce5f972dee9f92cd4d79fc8ffb3e169e9164757f.tar.gz vyatta-cfg-qos-ce5f972dee9f92cd4d79fc8ffb3e169e9164757f.zip |
T797: add sudo to ip command calls.
-rw-r--r-- | templates/interfaces/input/node.def | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def index 945c6db..5288888 100644 --- a/templates/interfaces/input/node.def +++ b/templates/interfaces/input/node.def @@ -8,8 +8,8 @@ syntax:expression: pattern $VAR(@) "^ifb[0-9]+$" ; "name must be (ifb0-ifb999)" begin: [ -d /sys/module/ifb ] || sudo modprobe ifb numifbs=0 -create: ip link add $VAR(@) type ifb && ip link set $VAR(@) up +create: sudo ip link add $VAR(@) type ifb && sudo ip link set $VAR(@) up delete: [ -d /sys/class/net/$VAR(@) ] || exit 0 /opt/vyatta/sbin/vyatta-qos.pl --check-target $VAR(@) || exit 1 - ip link delete dev $VAR(@) + sudo ip link delete dev $VAR(@) |