Bases: object
Connector stands for interacting with Infoblox NIOS
Defines methods for getting, creating, updating and removing objects from an Infoblox server instance.
Create an Infoblox object of type ‘obj_type’
payload (dict): Payload with data to send return_fields (list): List of fields to be returned
Remove an Infoblox object
Retrieve a list of Infoblox objects of type ‘obj_type’
Some get requests like ‘ipv4address’ should be always proxied to GM on Hellfire If request is cloud and proxy is not forced yet, then plan to do 2 request: - the first one is not proxied to GM - the second is proxied to GM
payload (dict): Payload with data to send return_fields (list): List of fields to be returned extattrs (list): List of Extensible Attributes force_proxy (bool): Set _proxy_search flag
to process requests on GM
Bases: exceptions.Exception
Base Exception
To correctly use this class, inherit from it and define a ‘message’ property. That message will get printf’d with the keyword arguments provided to the constructor.
Bases: infoblox_client.exceptions.InfobloxObjectParsingError
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.BaseExc
Generic Infoblox Config Exception.
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.BaseExc
Generic Infoblox Exception.
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.InfobloxObjectParsingError
Bases: infoblox_client.exceptions.InfobloxCannotCreateObject
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.BaseExc
Bases: infoblox_client.exceptions.InfobloxException
Bases: infoblox_client.exceptions.InfobloxException
Bases: object
Class representing available NIOS features
the Feature class represents available NIOS features as attributes.
Bases: object
Creates IPRange or fails if already exists.
Create NIOS Network and prepare DHCP options.
Some DHCP options are valid for IPv4 only, so just skip processing them for IPv6 case.
Parameters: |
|
---|---|
Returns: | created network (instance of objects.Network) |
Bases: object
Base class that provides minimal new object model interface
This class add next features to objects: - initialize public instance variables with None for fields
defined in ‘_fields’ and ‘_shadow_fields’
mapping is in effect on all stages (on init, getter and setter)
and not None object fields (useful in python interpretter)
Bases: object
Extensible Attributes
This class represents extensible attributes (EA). Converts EAs into format suitable for NIOS (to_dict) and builds EA class from NIOS reply (from_dict).
Bases: infoblox_client.objects.InfobloxObject
Extensible Attribute Definition
Bases: infoblox_client.objects.FixedAddress
FixedAddress for IPv6
Bases: infoblox_client.objects.InfobloxObject
Base class for HostRecords
HostRecord uses ipvXaddr for search and ipvXaddrs for object creation. ipvXaddr and ipvXaddrs are quite different: ipvXaddr is single ip as a string ipvXaddrs is list of dicts with ipvXaddr, mac, configure_for_dhcp and host keys. In ‘ipvXaddr’ ‘X’ stands for 4 or 6 depending on ip version of the class.
To find HostRecord use next syntax: hr = HostRecord.search(connector, ip=‘192.168.1.25’, view=’some-view’)
To create host record create IP object first: ip = IP(ip=‘192.168.1.25’, mac=’aa:ab;ce:12:23:34’) hr = HostRecord.create(connector, ip=ip, view=’some-view’)
Bases: infoblox_client.objects.HostRecord
HostRecord for IPv4
Bases: infoblox_client.objects.HostRecord
HostRecord for IPv6
Bases: infoblox_client.objects.SubObjects
Bases: infoblox_client.objects.IP
Bases: infoblox_client.objects.IP
Bases: infoblox_client.objects.BaseObject
Base class for all Infoblox related objects
_search_fields - fields that can be used to find object on NIOS side _updateable_search_fields - fields that can be used to find object on
NIOS side, but also can be changed, so has to be sent on update.
_infoblox_type - string representing wapi type of described object _remap - dict that maps user faced names into internal
representation (_fields)
Fetch object from NIOS by _ref or searchfields
Update existent object with fields returned from NIOS Return True on successful object fetch
Bases: infoblox_client.objects.BaseObject
Base class for objects that do not require all InfobloxObject power
DUID is consisted of 10 hex numbers.
0x00 + 3 random hex + mac with 6 hex
Tries to convert value into boolean.
strict_mode is True: - Only string representation of str(True) and str(False)
are converted into booleans;
strict_mode is False: - Anything that looks like True or False is converted into booleans. Values accepted as True: - ‘true’, ‘on’, ‘yes’ (case independent) Values accepted as False: - ‘false’, ‘off’, ‘no’ (case independent) - all other values are returned unchanged