"vsys1", "vsys2", etc.) is_virtual (bool): Physical or Virtual firewall timeout: The timeout for asynchronous jobs interval: The interval to check asynchronous jobs """ XPATH = "/devices" ROOT = Root. Args: hostname: Hostname or IP of device for API connections api_username: Username of administrator to access API api_password: Password of administrator to access API api_key: The API Key for connecting to the device's API serial: The serial number of this firewall port: Port of device for API connections vsys: The vsys of this firewall (eg. class Firewall ( PanDevice ): """A Palo Alto Networks Firewall This object can represent a firewall physical chassis, virtual firewall, or individual vsys. """Palo Alto Networks Firewall object""" import itertools import logging import re import as ET from decimal import Decimal import panos.errors as err from panos import device, getlogger, yesno from panos.base import ENTRY, PanDevice, Root from panos.base import VarPath as Var logger = getlogger ( _name_ ) IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. ![]() #!/usr/bin/env python # Copyright (c) 2014, Palo Alto Networks # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies.
0 Comments
Leave a Reply. |