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

404 Not Found, b'' - If network does not contain a security appliance. #5

Open
haltervk opened this issue Nov 16, 2023 · 0 comments
Open

Comments

@haltervk
Copy link

The script stops with a "404" error if the network does not contain a security appliance.

Added this code in the "for theNetwork in myNetworks:" loop.

devices = dashboard.networks.getNetworkDevices(theNetworkid)
MXtest=False
for d in devices:
    if "MX" in d["model"]:
        print(d["model"])
        MXtest=True
        break

if MXtest is False:
    continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant