-
Notifications
You must be signed in to change notification settings - Fork 16
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
4. compare two DeviceGroups from same file requesting file2 #790
Comments
Thanks for sharing this bug; as you are already on version 2.1.25 the repository is available there: nevertheless, I will inform you as soon as this is fixed. |
there is now a new develop Docker container available: which is fixing this. for your information: |
I am now getting a new error, I ran the development container docker run --name panosphp --rm -v ${PWD}:/share -it swaschkut/pan-os-php:develop I run the following: and I get the following error:
When I add the "/" in front of pre-rules I get a different error *********** pan-os-php.php type=diff UTILITY **************
*** Backtrace *** |
pre-rules is not a valid Palo Alto Networks PAN-OS path; you need to use: This is what I like to mention at my previous post |
I copied this from your output, I should of checked it. Please update the following output when typing Thank you `root@7c79281768a8:/share# pan-os-php type=diff *********** pan-os-php.php type=diff UTILITY **************
ERROR "file1" is missing from arguments USAGE:
|
I spoke too soon, I am still getting the error when using `root@7c79281768a8:/share# pan-os-php type=diff file1=gates-lab.xml "filter=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='$$name$$']/pre-rulebase" name1=ADCFWD1 name2=new-ADCFWD1 *********** pan-os-php.php type=diff UTILITY **************
ERROR "filter" argument is not a valid xPATH or not available | xpath2: "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='new-ADCFWD1']/pre-rulebase" USAGE:
|
but the error message is now mentioned very clear: ERROR "filter" argument is not a valid xPATH or not available | xpath2: "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='new-ADCFWD1']/pre-rulebase" your device-group "new-ADCFWD1" does not have the xpath available; |
That error is not true, I have verified that ther DG exists, its not my file root@5de3d9754888:/share# pan-os-php type=diff file1=stage0.xml "filter=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='$$name$$']/pre-rulebase" name1=ADCFWD1 name2=new-ADCFWD1 *********** pan-os-php.php type=diff UTILITY **************
ERROR "filter" argument is not a valid xPATH or not available | xpath1: "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='ADCFWD1']/pre-rules" USAGE:
root@5de3d9754888:/share# exit
|
Hi Erick, maybe to get closure to this: right now based on the error message, there are no Rules available in the DG "new-ADCFWD1" and Palo Alto Networks therefor do not create in the XML file the XMLnode. I hope that this workaround help you to understand what the real issue is. Another hint:
|
Describe the bug
When running the following:
pan-os-php type=diff file1=diff.xml "filter=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='$$name$$']/pre-rules" name1=DG1 name2=DG2
I get the following error message:
Also, when I reference the same file to file1 and file2 it just gives me a "success" message
root@cc49d464c1da:/share# pan-os-php type=diff "filter=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='$$name$$']/pre-rules" name1=DG1 name2=DG2 file1=diff.xml file2=diff.xml
*********** pan-os-php.php type=diff UTILITY **************
Opening ORIGINAL 'diff.xml' XML file...
Opening COMPARE 'diff.xml' XML file...
*** NOW DISPLAY DIFF ***
####################################################################
************* END OF SCRIPT pan-os-php.php type=diff ************
Expected behavior
I expect a diff using the same file referencing to different DGs
Current behavior
Same as bug description
Possible solution
Steps to reproduce
Screenshots
Context
I am not able to do a diff between 2 DGs
Your Environment
The text was updated successfully, but these errors were encountered: