summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/tunnel')
-rw-r--r--templates/interfaces/tunnel/node.def2
-rw-r--r--templates/interfaces/tunnel/node.tag/parameters/ip/tos/node.def4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index 9c946091..c6e3b447 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -81,7 +81,7 @@ create:
echo "interfaces tunnel $VAR(@): error creating tunnel interface"
;;
"ipip6" | "ip6ip6")
- ip -6 tunnel add $VAR(@) local $LIP remote $VAR(./remote-ip/@) mode $VAR(./encapsulation/@) ||
+ sudo ip -6 tunnel add $VAR(@) local $LIP remote $VAR(./remote-ip/@) mode $VAR(./encapsulation/@) ||
echo "interfaces tunnel $VAR(@): error creating tunnel interface"
;;
esac
diff --git a/templates/interfaces/tunnel/node.tag/parameters/ip/tos/node.def b/templates/interfaces/tunnel/node.tag/parameters/ip/tos/node.def
index c784e512..83f1ac62 100644
--- a/templates/interfaces/tunnel/node.tag/parameters/ip/tos/node.def
+++ b/templates/interfaces/tunnel/node.tag/parameters/ip/tos/node.def
@@ -6,5 +6,5 @@ val_help: u32:0-99; Type Of Service (TOS)
commit:expression: $VAR(../../../encapsulation/@) in "gre", "sit", "ipip" ; \
"tunnel encapsulation must be GRE, SIT or IPIP"
-update: ip tunnel change $VAR(../../../@) tos $VAR(@)
-delete: ip tunnel change $VAR(../../../@) tos inherit
+update: sudo ip tunnel change $VAR(../../../@) tos $VAR(@)
+delete: sudo ip tunnel change $VAR(../../../@) tos inherit