ifxlookup/plugins/paloalto.py

16 lines
726 B
Python

from servicebase import ServiceBase
class ServiceDelegate(ServiceBase) :
def get_arguments() :
"""Returns an array of information used to construct an argumentparser argument."""
# [ <short flag>,<unix flag>,<arg type>,<description> ]
# Example return: [ '-n', '--net', 'store_true', "Return network information about the subject" ]
return ['-fw', '--rules', 'store_true', "Return Firewall rules relating to the subject"]
def get_pa_auth_header(host,username,password) :
"""Given authentication information, return the authenticated header for use in REST requests to a Palo Alto device."""
pass
def get_pa_for_dc(dc) :
"""Given a datacenter, return the next Palo Alto device for that datacenter."""
pass