Hi,
it's the same as in dsk 3.x:
my $host_view = Vim::find_entity_view(view_type => 'HostSystem'};
my $vswitches = $host_view->config->network->vswitch;
foreach(@$vswitches){
my $vswitch = $_->name;
print "vSwitch: ".$vswitch;
foreach($_->pnic){
print "Physical Nic on ".$vswitch.": ".$_->spec->name;
}
}
Haven't tested the code, but this or something similar should do it.
-Stefan