From 96dec68926084eb37dce0ef9f451af336526e02b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 5 Mar 2008 20:26:25 +0000 Subject: include interface name when selecting device in drakconnect --- lib/network/connection.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/network/connection.pm') diff --git a/lib/network/connection.pm b/lib/network/connection.pm index b942881..6415282 100644 --- a/lib/network/connection.pm +++ b/lib/network/connection.pm @@ -80,6 +80,13 @@ sub get_description { $description; } +sub get_label { + my ($self) = @_; + my $intf = $self->get_interface; + my $descr = $self->get_description; + $intf ? sprintf("%s (%s)", $descr, $intf) : $descr; +} + sub get_driver { my ($self) = @_; $self->{device}{driver}; -- cgit v1.2.1