From 318f4cd607204b98b323824127b3d969b41a8b86 Mon Sep 17 00:00:00 2001 From: Saurabh Mohan Date: Tue, 22 Jan 2013 12:30:17 -0800 Subject: Dmvpn merge with mirantis jan22-2013 --- scripts/vyatta-encapsulation | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/vyatta-encapsulation (limited to 'scripts/vyatta-encapsulation') 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 -- cgit v1.2.3