ifxlookup/plugins/f5.py

19 lines
816 B
Python
Raw Normal View History

from servicebase import ServiceBase
class ServiceDelegate(ServiceBase) :
2019-12-04 19:00:50 +00:00
def get_arguments(cls) :
"""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 ['-cg', '--vip', 'store_true', "Return VIP information about the subject"]
def get_f5_auth_header(host,username,password,authprovider) :
"""Given authentication information, return the authenticated header for use in REST requests to an F5 device."""
pass
def get_f5_for_dc(dc) :
"""Given a datacenter, return the next F5 device for that datacenter."""
pass
def get_vip_cg(ip) :
"""Given an IP, return all VIPs that the IP is a member of."""
pass