Add net_interface_config.description
This commit is contained in:
1 parent
8cc89cd367
commit
81a29ba2a2
8 files changed
+29
No files matched your search
@@ -680,6 +680,11 @@ my %classes = (
|
||||
desc => '',
|
||||
plat => '*'
|
||||
},
|
||||
{
|
||||
name => 'description', type => 'String',
|
||||
desc => '',
|
||||
plat => '*'
|
||||
},
|
||||
{
|
||||
name => 'address', type => 'NetAddr',
|
||||
desc => '',
|
||||
|
||||
@@ -75,6 +75,10 @@ public class Ifconfig extends SigarCommandBase {
|
||||
hwaddr = " HWaddr " + ifconfig.getHwaddr();
|
||||
}
|
||||
|
||||
if (!ifconfig.getName().equals(ifconfig.getDescription())) {
|
||||
println(ifconfig.getDescription());
|
||||
}
|
||||
|
||||
println(ifconfig.getName() + "\t" +
|
||||
"Link encap:" + ifconfig.getType() +
|
||||
hwaddr);
|
||||
|
||||
Reference in new issue
Block a user