PaloAltoNetworks / PaloAltoNetworks/pan-os-python

ApplicationFilter objects missing "Apply to New App-IDs only" parameter

Open
#518 0 comments 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

The ApplicationFilter Object class is missing the property "Apply to New App-IDs only". This is causing an error when I try to create an object on the firewall with only that filter selected.

Expected behavior

The ApplicationFilter class should have a property/parameter for "Apply to New App-IDs only".

Current behavior

The ApplicationFilter Object class is missing the property "Apply to New App-IDs only".

Possible solution

Add it as a parameter.

Steps to reproduce

  1. Find the existing ApplicationFilter with only the "Apply to New App-IDs only" filter selected on firewall.
  2. Create a copy of this filter.
  3. Add the filter to the other firewall.
  4. Error

Screenshots

Here I have a screenshot of the XML API showing the parameter on the ApplicationFilter object.
image
Here you can see the ApplicationFilter object does not include this filter:
image

Context

I get an error when trying to create an ApplicationFilter with only that filter selected.

Your Environment

  • Version used:
  • pan-python 0.16.0
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Python 3.9.7
  • Operating System and version (desktop or mobile):
  • CentOS 8 stream Linux
  • Link to your project:

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

Locate the ApplicationFilter object class and its existing property or XML parameter mappings. Compare them with the firewall XML API representation shown in the issue, focusing on the “Apply to New App-IDs only” parameter. Done means an ApplicationFilter containing only this parameter can be created or copied without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.