Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to import Leaf Network column from Infoblox with Python API?

Member
Posts: 1
689     0

Hello!

 

I'm trying to import the network and some other fields to my database in SQL but only the values from the Leaf Network column are shown as NULL. I'm using a python script to do all the importing and I call the fields like this: 

answer = infoblox_query('network', {'_return_fields+': 'network,comment,extattrs', '*Status': 'Active'})

for network in answer:
    data = [network.get('comment'),
    network['extattrs'].get('SiteID', {}).get('value'),
    network['extattrs'].get('Site', {}).get('value'),
    network['extattrs'].get('Country', {}).get('value'),
    network['extattrs'].get('Status', {}).get('value'),
    network['extattrs'].get('VLAN', {}).get('value'),

    network['extattrs'].get('Leaf Network', {}).get('value')]

 

The other fields like SiteID, Site, Country,etc are working fine. So I don't know if there's another way to call the Leaf Network column or if I have to do it differently.

 

I hope you can help me, I have days dealing with this but without success.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin