summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 16:15:02 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 16:15:02 -0700
commit8c7c6648dafdcf3e12af5ad904a78c784468b439 (patch)
treead24070b7d1bcaf21f467ede7670a1035f4c777e /scripts
parent9dc3fd49b7e37d33822cc2eea3a697be5d3f9e40 (diff)
downloadvyatta-op-8c7c6648dafdcf3e12af5ad904a78c784468b439.tar.gz
vyatta-op-8c7c6648dafdcf3e12af5ad904a78c784468b439.zip
Use new interface_description function
Show interfaces doesn't have to be in configure mode.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-show-interfaces.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index 1b662c8..6e071e2 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -57,10 +57,8 @@ my @tx_stat_vars =
sub get_intf_description {
my $name = shift;
- my $intf = new Vyatta::Interface($name);
- return "" unless $intf;
+ my $description = interface_description($name);
- my $description = $intf->description();
return "" unless $description;
return $description;
}