summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Mohan <saurabh@vyatta.com>2012-05-16 16:40:19 -0700
committerSaurabh Mohan <saurabh@vyatta.com>2012-05-16 16:40:19 -0700
commit7e781fcfe4896028d9f20a718102a24e25ebd7e4 (patch)
tree0414882324c88eeea3d84b148f2fc7d9b2326680
parent026dd9f5bccba545edb588cc7e92869db363e756 (diff)
downloadvyatta-op-7e781fcfe4896028d9f20a718102a24e25ebd7e4.tar.gz
vyatta-op-7e781fcfe4896028d9f20a718102a24e25ebd7e4.zip
VTI show support.
-rwxr-xr-xscripts/vyatta-show-interfaces.pl1
-rw-r--r--templates/show/interfaces/vti/detail/node.def2
-rw-r--r--templates/show/interfaces/vti/node.def2
-rw-r--r--templates/show/interfaces/vti/node.tag/brief/node.def2
-rw-r--r--templates/show/interfaces/vti/node.tag/node.def3
5 files changed, 10 insertions, 0 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index b8a5ae6..d66190e 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -265,6 +265,7 @@ sub run_show_intf_brief {
next if ($intf =~ /sit0/);
next if ($intf =~ /tunl0/);
next if ($intf =~ /ip6tnl0/);
+ next if ($intf =~ /vti0/);
my @ip_addr = get_ipaddr($intf);
my ($state, $link) = get_state_link($intf);
$state = conv_brief_code($state);
diff --git a/templates/show/interfaces/vti/detail/node.def b/templates/show/interfaces/vti/detail/node.def
new file mode 100644
index 0000000..43604e4
--- /dev/null
+++ b/templates/show/interfaces/vti/detail/node.def
@@ -0,0 +1,2 @@
+help: Show detailed virtual tunnel interface information
+run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=vti --action=show
diff --git a/templates/show/interfaces/vti/node.def b/templates/show/interfaces/vti/node.def
new file mode 100644
index 0000000..9e3fb7e
--- /dev/null
+++ b/templates/show/interfaces/vti/node.def
@@ -0,0 +1,2 @@
+help: Show virtual tunnel interface information
+run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=vti --action=show-brief
diff --git a/templates/show/interfaces/vti/node.tag/brief/node.def b/templates/show/interfaces/vti/node.tag/brief/node.def
new file mode 100644
index 0000000..64dbb11
--- /dev/null
+++ b/templates/show/interfaces/vti/node.tag/brief/node.def
@@ -0,0 +1,2 @@
+help: Show summary of specified virtual tunnel interface information
+run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" --action=show-brief
diff --git a/templates/show/interfaces/vti/node.tag/node.def b/templates/show/interfaces/vti/node.tag/node.def
new file mode 100644
index 0000000..e0b8884
--- /dev/null
+++ b/templates/show/interfaces/vti/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified virtual tunnel interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show vti
+run: ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4"