From df137758ffae523dc60a0097955b1bbdd96f1445 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 19 Sep 2011 13:23:35 -0500 Subject: Add operational information for ipv6 tunnel interfaces, part of bug 6900 --- scripts/vyatta-show-interfaces.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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", -- cgit v1.2.3