PaloAltoNetworks / PaloAltoNetworks/pan-os-python
network interfaces unavailable when firewall config queried via panorama proxy
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 400
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
network.EthernetInterface.refreshall(FIREWALL) does not enumerate & add network interface configuration if the connection is proxied through panorama
e.g.
fw = pandevice.firewall.Firewall(panAddress,panUser,panPass)
network.EthernetInterface.refreshall(fw)
works, but
pano = pandevice.panorama.Panorama(panAddress, panUser, panPass)
fw = pano.find(fwSerial)
network.EthernetInterface.refreshall(fw)
doesn't.
Expected behavior
Config query should return the list of ethernet interfaces and add them as children to the firewall object whether the query is sent to the firewall directly or proxied to the firewall via panorama
Current behavior
interface child objects are only added if the query is submitted directly to the firewall. Proxied API returns an empty / null set.
Steps to reproduce
- Add a firewall to panorama, configure its interfaces via template
- Attempt to poll the firewall's config via panorama as detailed above
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at network.EthernetInterface.refreshall and compare its direct-firewall path with the Panorama.find(fwSerial) path. Reproduce both examples from the issue, then verify that querying through Panorama returns the ethernet interface list and adds the interface objects as firewall children.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100