THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

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

New Member
Posts: 1
1313     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