Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug-11102022-1 outputformatset doesn't take into account multi-vsys firewall command format #677

Closed
nexusops opened this issue Oct 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@nexusops
Copy link
Contributor

Describe the bug

Executing the following commands produces set commands in a single-vsys format (references to "shared" and "vsys" are missing from the commands)

pan-os-php type=address in=config.xml location=any 'filter=(value is.in.file ip-list.txt)' 'actions=addObjectWhereUsed:1.1.1.1,no' outputformatset=add-1.1.1.1.txt | tee 1.1.1.1-script-output.txt

pan-os-php type=address in=config.xml location=any 'filter=(value ip4.match.exact 4.4.4.4)' 'actions=addObjectWhereUsed:1.1.1.1,no' outputformatset=add-1.1.1.1.txt | tee 1.1.1.1-script-output.txt

Expected behavior

the following commands should be produced
set vsys vsys1 address-group "GROUP" static 1.1.1.1
set vsys vsys1 rulebase security rules "RULE" source 1.1.1.1

Current behavior

the following commands are produced
set address-group "GROUP" static 1.1.1.1
set rulebase security rules "RULE" source 1.1.1.1

=======

  • Version used: PAN-OS-PHP version: 2.0.62 [UNIX] [7.4.3]
  • PAN-OS-PHP in Docker
@nexusops nexusops added the bug Something isn't working label Oct 11, 2022
@swaschkut
Copy link
Contributor

bugfix available in Docker develop Container;
will be published in PAN-OS-PHP version 2.1.16

@swaschkut
Copy link
Contributor

fixed with #775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants