PaloAltoNetworks / PaloAltoNetworks/pan-os-python
Setting address object failed on PA-3260 (v8.1.4.H2) while succeeded on PA-3000 (v8.1.2)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 400
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
Synopsis:
Setting address object failed on PA-3260 (v8.1.4.H2) while succeeded on PA-3000 (v8.1.2)
Exception:
vsys1 -> address has unexpected text.
Python package:
pan-python=0.13.0
pandevice=0.6.6
Code snippet (sample):
fw = pandevice.firewall.Firewall('10.0.0.1', 'username', 'password', port='443')
bulk_objects = []
ao = pandevice.objects.AddressObject(
name='test',
value='10.0.0.2/32',
type='ip-netmask')
bulk_objects.append(ao)
fw.add(ao)
bulk_objects[0].create_similar()
bulk_objects[0].apply_similar()
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 by reproducing the snippet with pan-python 0.13.0 and pandevice 0.6.6 on the reported PA-3260 and PA-3000 versions. Trace AddressObject handling through create_similar() and apply_similar(), then compare the generated address configuration on both devices. Done means setting the address object succeeds on the affected device without breaking the working case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100