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

refreshall() invoked on Root.VSYS PanObject with a device.Vsys parent always returns no children #92

Closed
shinmog opened this issue Aug 12, 2017 · 1 comment
Assignees
Labels

Comments

@shinmog
Copy link
Collaborator

shinmog commented Aug 12, 2017

No description provided.

@shinmog shinmog added the bug label Aug 12, 2017
@shinmog shinmog self-assigned this Aug 12, 2017
@shinmog
Copy link
Collaborator Author

shinmog commented Aug 12, 2017

Example workaround for the time being.

from pandevice import device, firewall, network

fw = firewall.Firewall('127.0.0.1', 'admin', 'admin')
fw.refresh_system_info()
all_vsys = device.Vsys.refreshall(fw, name_only=True)
for vsys in all_vsys:
    fw.vsys = str(vsys)
    zones = network.Zone.refreshall(fw, add=False)
    vsys.extend(zones)
fw.vsys = None

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

No branches or pull requests

1 participant