summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-show-interfaces.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index 988b0b5..02ad8e0 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -115,7 +115,7 @@ sub get_intf_stats {
my %stats = ();
foreach my $var (@rx_stat_vars, @tx_stat_vars) {
- $stats{$var} = Vyatta::Misc::get_sysfs_value($intf, "statistics/$var");
+ $stats{$var} = get_sysfs_value($intf, "statistics/$var");
}
return %stats;
}
@@ -178,12 +178,12 @@ sub get_state_link {
my $intf = shift;
my $state;
my $link = 'down';
- my $flags = Vyatta::Misc::get_sysfs_value($intf, 'flags');
+ my $flags = get_sysfs_value($intf, 'flags');
my $hex_flags = hex($flags);
if ($hex_flags & 0x1) { # IFF_UP
$state = 'up';
- my $carrier = Vyatta::Misc::get_sysfs_value($intf, 'carrier');
+ my $carrier = get_sysfs_value($intf, 'carrier');
if ($carrier eq '1') {
$link = "up";
}