summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-19 13:23:35 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-19 13:24:07 -0500
commitdf137758ffae523dc60a0097955b1bbdd96f1445 (patch)
treec51bd8acd3458529a204153e8ef15b88004d3d68
parent828296cecf049e8617e6a155f81752ee50d40429 (diff)
downloadvyatta-op-df137758ffae523dc60a0097955b1bbdd96f1445.tar.gz
vyatta-op-df137758ffae523dc60a0097955b1bbdd96f1445.zip
Add operational information for ipv6 tunnel interfaces, part of bug 6900
-rwxr-xr-xscripts/vyatta-show-interfaces.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index e90c19e..e101b28 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -198,6 +198,10 @@ sub run_show_intf {
my $description = get_intf_description($intf);
my $timestamp = $clear{'timestamp'};
my $line = `ip addr show $intf | sed 's/^[0-9]*: //'`; chomp $line;
+ if ($line =~ /link\/tunnel6/) {
+ my $estat = `ip -6 tun show $intf | sed 's/.*encap/encap/'`;
+ $line =~ s% link/tunnel6% $estat$&%;
+ }
print "$line\n";
if (defined $timestamp and $timestamp ne "") {
my $time_str = strftime("%a %b %d %R:%S %Z %Y",