+ manage esx 3.x for traffic

This commit is contained in:
garnier-quentin 2015-06-15 15:08:29 +02:00
parent 390eeb6aee
commit 38b90379fc
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ sub run {
} else {
$filters{name} = qr/$self->{esx_hostname}/;
}
my @properties = ('name', 'config.network.pnic', 'runtime.connectionState', 'config.network.vswitch', 'config.network.proxySwitch');
my @properties = ('name', 'config.network.pnic', 'runtime.connectionState', 'config.network.vswitch');
if (!defined($self->{no_proxyswitch})) {
push @properties, 'config.network.proxySwitch';
}
my $result = centreon::esxd::common::search_entities(command => $self, view_type => 'HostSystem', properties => \@properties, filter => \%filters);
return if (!defined($result));