- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Extensible Attribute in an appliance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-29-2014 09:04 AM
Is there a way to get all the values of an Extensible Attribute (say, City) in an appliance? Using PERL.
Any help would be appreciated.
I got the answer!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-05-2014 10:00 AM
I got the answer!
Could you share the answer?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-30-2014 11:40 AM
Could you share the answer?
Susan
list values?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-14-2014 08:09 AM
If you're referring to extensible attributes that have a list :
#Get extensible attribute definition
my @retrieved_objs = $session->get( object => "Infoblox::Grid::ExtensibleAttributeDef", name => "test_ext_attr" );
foreach my $ext_attr_def (@retrieved_objs)
{
#Get list of values my $ref_list_values = $ext_attr_def->list_values();
print Dumper($ref_list_values);
}
If you're referring to extensible attributes definitions that are not lists; you'll have to iterate through each object and create a hash with unique values.
Hi Susan, of course....here's
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-25-2014 05:05 AM
Hi Susan, of course....here's what I found that worked.
my @retrieved_objs = $session->get(
object => "Infoblox::Grid::ExtensibleAttributeDef",
name => "Device Type",
);
my $object = $retrieved_objs[0];
my @ref_list_values = @{ $object->list_values() };
After that, just use a foreach loop to print the values.