diff options
author | Saurabh Mohan <saurabh@vyatta.com> | 2013-05-09 13:58:05 -0700 |
---|---|---|
committer | Saurabh Mohan <saurabh@vyatta.com> | 2013-05-09 13:58:05 -0700 |
commit | fec8fc84b3ab39cf7cb448c9542bdca3ca6f28bf (patch) | |
tree | 67c312e6bd0119124e1d5832f0703719c10080fc /scripts | |
parent | b75dc3236179ffe13e6c3531dcecf6f21f21421d (diff) | |
parent | 2ce614b5b76309c2257e8d11bea929278c96f428 (diff) | |
download | vyatta-cfg-system-fec8fc84b3ab39cf7cb448c9542bdca3ca6f28bf.tar.gz vyatta-cfg-system-fec8fc84b3ab39cf7cb448c9542bdca3ca6f28bf.zip |
Merge daisy support for mGRE
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-encapsulation | 12 | ||||
-rwxr-xr-x | scripts/vyatta-tunnel-cleanup | 3 |
2 files changed, 15 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 diff --git a/scripts/vyatta-tunnel-cleanup b/scripts/vyatta-tunnel-cleanup index 979fb7bd..af73bc04 100755 --- a/scripts/vyatta-tunnel-cleanup +++ b/scripts/vyatta-tunnel-cleanup @@ -26,6 +26,9 @@ my %tunnel; foreach my $tun ( $config->listEffectiveNodes() ) { my $mode = $config->returnEffectiveValue("$tun encapsulation"); next if ($interface eq $tun); # don't count the one being deleted + if ($mode eq "gre-multipoint") { + $mode = "gre"; + } $tunnel{$mode} = 1; } |