summaryrefslogtreecommitdiff
path: root/templates/interfaces/vti/node.def
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-28 19:23:03 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-28 19:23:03 +0200
commit9c80b9a30517576267634d202fbe126eca749c12 (patch)
treec54882d9bff4530a60c951dad993141f5cb7003d /templates/interfaces/vti/node.def
parent844d00df761445b68d4db0a4f4680f8d9ef02b7d (diff)
downloadvyatta-cfg-system-9c80b9a30517576267634d202fbe126eca749c12.tar.gz
vyatta-cfg-system-9c80b9a30517576267634d202fbe126eca749c12.zip
vti: T1579: migrate to vyos-1x
Diffstat (limited to 'templates/interfaces/vti/node.def')
-rw-r--r--templates/interfaces/vti/node.def35
1 files changed, 0 insertions, 35 deletions
diff --git a/templates/interfaces/vti/node.def b/templates/interfaces/vti/node.def
deleted file mode 100644
index 5e8adb07..00000000
--- a/templates/interfaces/vti/node.def
+++ /dev/null
@@ -1,35 +0,0 @@
-tag:
-priority: 381
-type: txt
-help: Virtual Tunnel interface
-val_help: <vtiN>; Virtual Tunnel interface name
-syntax:expression: pattern $VAR(@) "^vti[0-9]+$" \
- ; "vti must be (vti0-vti999..)"
-
-begin:
-if [ "${COMMIT_ACTION}" == DELETE ]; then
- # check if there is still a reference
- `${vyatta_sbindir}/vyatta-vti-config.pl --checkref --intf=$VAR(@)`
- if [ $? -gt 0 ] ; then
- echo "Interface $VAR(@) is referenced in vpn configuration."
- exit -1
- fi
-fi
-if [ "${COMMIT_ACTION}" == SET ]; then
- `${vyatta_sbindir}/vyatta-vti-config.pl --checkref --intf=$VAR(@)`
- if [ $? -eq 0 ]; then
- echo "Warning: Interface $VAR(@) is not referenced in vpn configuration."
- fi
-fi
-
-delete:
- if [ -d /sys/class/net/$VAR(@) ] ; then
- sudo ip link set $VAR(@) down
- sudo ip tunnel del $VAR(@) mode ipip
- fi
-
-end:
-if [ "${COMMIT_ACTION}" == DELETE ]; then
- /opt/vyatta/sbin/vyatta-tunnel-cleanup $VAR(@)
-fi
-