PaloAltoNetworks / PaloAltoNetworks/pan-os-python

network interfaces unavailable when firewall config queried via panorama proxy

Open
#207 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Add a firewall to panorama, configure its interfaces via template
  2. Attempt to poll the firewall's config via panorama as detailed above

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.