PaloAltoNetworks / pan-os-php

Framework and utilities to easily manage and edit Palo Alto Network PANOS devices
ISC License
72 stars 15 forks source link

Bug-02-may-2023-1 ResolveServiceSummary doesn't work with ruletype=nat #744

Closed nexusops closed 1 year ago

nexusops commented 1 year ago

Describe the bug

When performing "exporttoexcel" action and using "ResolveServiceSummary" optional argument, the script ends with an error. Exporttoexcel action works fine without the ResolveServiceSummary. ResolveAddressSummary also works fine.

Expected behavior

Service objects should be resolved, the same way how the export works for security rules

Current behavior

scripts ends with error

Possible solution

Service objects should be resolved, the same way how the export works for security rules

Steps to reproduce

  1. run the following command pan-os-php type=rule ruletype=nat in=[CONFIG-FILE] location=[LOCATION] 'actions=exporttoexcel:test-export-service.xls,ResolveServiceSummary'

  2. The following error is produced

    • action 'exportToExcel' has tasks to process before shutdown.
swaschkut commented 1 year ago

this will be resolved in version 2.1.3 develop version has this already fixed

swaschkut commented 1 year ago

introduce with #747