Skip to content

fix: accept template variables and multi ICMP types in int params - #630

Open
anandhx wants to merge 1 commit into
PaloAltoNetworks:developfrom
anandhx:fix/int-param-template-and-icmp-list
Open

anandhx wants to merge 1 commit into
PaloAltoNetworks:developfrom
anandhx:fix/int-param-template-and-icmp-list

Conversation

@anandhx

@anandhx anandhx commented Nov 6, 2026

Copy link
Copy Markdown

Summary

  • Template.refreshall() and application refresh raise ValueError when a vartype=int field is a Panorama template variable (``) or a multi-type ICMP value (13,14 for icmp-timestamp).
  • Those literals are kept as strings so the value can be read and written back. A normal integer is still parsed as int. Any other text still raises ValueError.

Test plan

  • python -m unittest tests.test_base.TestVariableRefreshes -v
  • Template.refreshall(pano) on a template whose HA Group ID is ``
  • Refresh applications that include icmp-timestamp (default_icmp_type = 13,14)

Fixes #523
Fixes #560

Made with Cursor

Refreshing Panorama templates or applications failed when an int field contained a template variable such as $groupID or a multi-type ICMP value such as 13,14.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant