diff options
author | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2013-01-22 12:30:17 -0800 |
---|---|---|
committer | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2013-01-22 12:30:17 -0800 |
commit | 318f4cd607204b98b323824127b3d969b41a8b86 (patch) | |
tree | 23dd75af07275a1754ad5721cf1dc70093dc92db /scripts | |
parent | ead1a08f4606b6eddf9d09b2820ba0dbc17f2495 (diff) | |
download | vyatta-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-encapsulation | 12 |
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 |