diff options
author | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 14:12:59 -0700 |
---|---|---|
committer | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 14:12:59 -0700 |
commit | 7062598f4803afd3516626991fbe44cee6b99861 (patch) | |
tree | 7ac9a72f40b5325c656a5dff7f938069a9b0b9db /templates/interfaces/vti/node.def | |
parent | fea8fcbdc0b75e4f5382959eb216d0c5dfcd8ebe (diff) | |
download | vyatta-cfg-system-7062598f4803afd3516626991fbe44cee6b99861.tar.gz vyatta-cfg-system-7062598f4803afd3516626991fbe44cee6b99861.zip |
Bugfix 8241: VTI Sync up the mtu range check with what the kernel module accepts.
Allow VTI mtu range check to be inline with what the kernel will accept.
Also add a warning if a VTI is configured but not used.
Improve the interface name range which is allowed (8259)
Diffstat (limited to 'templates/interfaces/vti/node.def')
-rw-r--r-- | templates/interfaces/vti/node.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/interfaces/vti/node.def b/templates/interfaces/vti/node.def index 9a5120a6..15ea2e3e 100644 --- a/templates/interfaces/vti/node.def +++ b/templates/interfaces/vti/node.def @@ -4,7 +4,7 @@ type: txt help: Virtual Tunnel interface val_help: <vtiN>; Virtual Tunnel interface name syntax:expression: pattern $VAR(@) "^vti[0-9]+$" \ - ; "vti must be (vti-vti999)" + ; "vti must be (vti0-vti999..)" begin: if [ "${COMMIT_ACTION}" == DELETE ]; then @@ -15,6 +15,12 @@ if [ "${COMMIT_ACTION}" == DELETE ]; then 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 |