From 8c7c6648dafdcf3e12af5ad904a78c784468b439 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 16:15:02 -0700 Subject: Use new interface_description function Show interfaces doesn't have to be in configure mode. --- debian/control | 1 + scripts/vyatta-show-interfaces.pl | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 2052a68..724c211 100644 --- a/debian/control +++ b/debian/control @@ -13,6 +13,7 @@ Depends: sed (>= 4.1.5), ntpdate, procps (>= 1:3.2.7-3), pciutils, + vyatta-cfg (>= 0.16.26), vyatta-quagga (>= 0.99.15-26), lsof, coreutils (>= 5.97-5.3), 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; } -- cgit v1.2.3