diff options
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-x | lib/Vyatta/Interface.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm index b7473dc..432fe33 100755 --- a/lib/Vyatta/Interface.pm +++ b/lib/Vyatta/Interface.pm @@ -352,13 +352,7 @@ sub running { sub description { my $self = shift; - open my $ifalias, '<', "/sys/class/net/$self->{name}/ifalias" - or return; - my $description = <$ifalias>; - close $ifalias; - chomp $description if $description; - - return $description; + return interface_description($self->{name}); } 1; |