summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSaurabh Mohan <saurabh.mohan@vyatta.com>2013-01-22 12:30:17 -0800
committerSaurabh Mohan <saurabh.mohan@vyatta.com>2013-01-22 12:30:17 -0800
commit318f4cd607204b98b323824127b3d969b41a8b86 (patch)
tree23dd75af07275a1754ad5721cf1dc70093dc92db /scripts
parentead1a08f4606b6eddf9d09b2820ba0dbc17f2495 (diff)
downloadvyatta-cfg-system-318f4cd607204b98b323824127b3d969b41a8b86.tar.gz
vyatta-cfg-system-318f4cd607204b98b323824127b3d969b41a8b86.zip
Dmvpn merge with mirantis jan22-2013
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-encapsulation12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/vyatta-encapsulation b/scripts/vyatta-encapsulation
new file mode 100644
index 00000000..8c64341e
--- /dev/null
+++ b/scripts/vyatta-encapsulation
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+list="gre gre-bridge ipip sit ipip6 ip6ip6"
+if [[ `dpkg -l | grep "vyatta-nhrp" | awk '{print $1}'` = "ii" ]]; then tmp="gre-multipoint"; fi
+full_list="${list} ${tmp}"
+if [[ -n "$1" ]]; then
+ for f in ${full_list}; do if [[ "$1" = "$f" ]]; then exit 0; fi; done
+ echo "Must be (${full_list})"
+ exit 1;
+else
+ echo ${full_list}
+fi