Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I can not find the vlan name from the interfaces
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2014 08:37 AM
2825     0
hello
I want to receive the name of the vlan membership of an interface (e.g. client-vlan).
I despair.
here is my code to receive the vlan name.
With this code i do not reveive any results. If I remove the interfaceID operation, I get all vlans from the device. But I want only the vlan from the interface port.
Could anybody heldp?
#should find vlan membership from interface
my @array = $client->broker->VlanMember->find(
op_DeviceID => '=',
val_c_DeviceID => $device->DeviceID,
op_InterfaceID => '=',
val_c_InterfaceID => $ifaddr->InterfaceID ,
select => [qw( VlanName VlanID)],
);
# print the results
foreach my $vlanName (@array)
{
print $vlanName->VlanName . "\n";
}
Thanks for help.
Francis