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

plugins paloaltoarp.py - Entries node not found at element [0][4] #2924

Closed
ajgibbon-tu opened this issue May 23, 2024 · 6 comments · Fixed by #2925
Closed

plugins paloaltoarp.py - Entries node not found at element [0][4] #2924

ajgibbon-tu opened this issue May 23, 2024 · 6 comments · Fixed by #2925
Assignees
Labels

Comments

@ajgibbon-tu
Copy link

ajgibbon-tu commented May 23, 2024

entries = root[0][4]

In the xml returned from our paloalto firewalls element 4 returns the "max" node not "entries"
I've used "entries = root[0][3]" to return data.

@lunkwill42
Copy link
Member

Would you be able to look at this, @Slenderman00 ?

@Slenderman00
Copy link
Contributor

@ajgibbon-tu could you provide me with the output of this curl -kG https://[Device IP]/api/?type=op&cmd=%3Cshow%3E%3Carp%3E%3Centry+name+%3D+%27all%27%2F%3E%3C%2Farp%3E%3C%2Fshow%3E&key=[API KEY]

@ajgibbon-tu
Copy link
Author

ajgibbon-tu commented May 23, 2024

export.txt
Hi, will this suffice.

I've shortened and obfuscated as I'd rather not display our IP ranges here? I think the issue is purely down to the elements not being in a fixed order in the xml file. We have more than one Palo firewall, out of the two I've checked, the entries node has come back as element 3.

@Slenderman00
Copy link
Contributor

@ajgibbon-tu The issue has been solved. #2925

@lunkwill42
Copy link
Member

Fixed by #2925. ETA in NAV 5.10.1

@ajgibbon-tu
Copy link
Author

works great in my environment, many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants