diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 16:15:02 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 16:15:02 -0700 |
commit | 8c7c6648dafdcf3e12af5ad904a78c784468b439 (patch) | |
tree | ad24070b7d1bcaf21f467ede7670a1035f4c777e /scripts | |
parent | 9dc3fd49b7e37d33822cc2eea3a697be5d3f9e40 (diff) | |
download | vyatta-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-x | scripts/vyatta-show-interfaces.pl | 4 |
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; } |