napalm-automation / napalm-salt

Modules for event-driven network automation and orchestration using Salt
Apache License 2.0
127 stars 36 forks source link

Net.interfaces not working for palo alto devices #56

Open shanmukha511 opened 5 years ago

shanmukha511 commented 5 years ago

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/utils/napalm.py", line 167, in call out = getattr(napalm_device.get('DRIVER'), method)(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/napalm_panos/panos.py", line 528, in get_interfaces interface_info_json = json.dumps(interface_info_xml['response']['result']['hw']) KeyError: u'hw' The panos.py code is working fine for some devices but for some device when we execute net.interfaces we are getting above error

itdependsnetworks commented 5 years ago

Can you open the issue on the community panos driver? Please note the version of palo device that fails you are using when you do open the request