%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/infoblox_range.pyo

�
���^c@@sPdZddlmZmZmZddddd�Zddddd�ZdS(u
Infoblox host record managment.

functions accept api_opts:

    api_verifyssl: verify SSL [default to True or pillar value]
    api_url: server to connect to [default to pillar value]
    api_username:  [default to pillar value]
    api_password:  [default to pillar value]
i(tabsolute_importtprint_functiontunicode_literalsc
K@sXi|d6td6dd6id6}|s1i}nd|krT|ji|d6�nd|krw|ji|d6�nd|kr�|ji|d6�ntd|d|d|�}|dkrtdd	|dd
d|�}|dkrtdd	dd
|d|�}qn|r�td||�}|sMt|d<d|d<|S|r�td
rud|d<d|d<|Std|dd||�}t|d<d|d<i|d6|d<|Sntd
r�d|d<dj|�|d<|Std||�}	td|d|d|�}t|d<d|d<idd6i|	d6|d6d6|d<|S(u%
    Ensure range record is present.

    infoblox_range.present:
        start_addr: '129.97.150.160',
        end_addr: '129.97.150.170',

    Verbose state example:

    .. code-block:: yaml

        infoblox_range.present:
            data: {
                'always_update_dns': False,
                'authority': False,
                'comment': 'range of IP addresses used for salt.. was used for ghost images deployment',
                'ddns_generate_hostname': True,
                'deny_all_clients': False,
                'deny_bootp': False,
                'disable': False,
                'email_list': [],
                'enable_ddns': False,
                'enable_dhcp_thresholds': False,
                'enable_email_warnings': False,
                'enable_ifmap_publishing': False,
                'enable_snmp_warnings': False,
                'end_addr': '129.97.150.169',
                'exclude': [],
                'extattrs': {},
                'fingerprint_filter_rules': [],
                'high_water_mark': 95,
                'high_water_mark_reset': 85,
                'ignore_dhcp_option_list_request': False,
                'lease_scavenge_time': -1,
                'logic_filter_rules': [],
                'low_water_mark': 0,
                'low_water_mark_reset': 10,
                'mac_filter_rules': [],
                'member': {'_struct': 'dhcpmember',
                        'ipv4addr': '129.97.128.9',
                        'name': 'cn-dhcp-mc.example.ca'},
                'ms_options': [],
                'nac_filter_rules': [],
                'name': 'ghost-range',
                'network': '129.97.150.0/24',
                'network_view': 'default',
                'option_filter_rules': [],
                'options': [{'name': 'dhcp-lease-time',
                            'num': 51,
                            'use_option': False,
                            'value': '43200',
                            'vendor_class': 'DHCP'}],
                'recycle_leases': True,
                'relay_agent_filter_rules': [],
                'server_association_type': 'MEMBER',
                'start_addr': '129.97.150.160',
                'update_dns_on_lease_renewal': False,
                'use_authority': False,
                'use_bootfile': False,
                'use_bootserver': False,
                'use_ddns_domainname': False,
                'use_ddns_generate_hostname': True,
                'use_deny_bootp': False,
                'use_email_list': False,
                'use_enable_ddns': False,
                'use_enable_dhcp_thresholds': False,
                'use_enable_ifmap_publishing': False,
                'use_ignore_dhcp_option_list_request': False,
                'use_known_clients': False,
                'use_lease_scavenge_time': False,
                'use_nextserver': False,
                'use_options': False,
                'use_recycle_leases': False,
                'use_unknown_clients': False,
                'use_update_dns_on_lease_renewal': False
            }
    unameuresultuucommentuchangesu
start_addruend_addruinfoblox.get_ipv4_ranget
start_addrtend_addruinfoblox.diff_objectsu supplied fields in correct stateutestuwould attempt to update recorduinfoblox.update_objectu_reftdataurecord fields updatedudiffu"would attempt to create record {0}uinfoblox.create_ipv4_rangeurecord createduNoneuoldudataunewN(tFalsetupdatet__salt__tNonetTruet__opts__tformat(
tnameRRRtapi_optstrettobjtdifftnew_objtnew_obj_ref((s>/usr/lib/python2.7/site-packages/salt/states/infoblox_range.pytpresentsPN"	 &










&cK@s�i|d6td6dd6id6}|s1i}nd|krT|ji|d6�nd|krw|ji|d6�nd|kr�|ji|d6�ntd|d|d|�}|dkrtdd	|dd
d|�}|dkrtdd	dd
|d|�}qn|s4t|d<d|d<|StdrVd|d<d
|d<|Stdd|d�r�t|d<idj||�d6dd6|d<n|S(u
    Ensure the range is removed

    Supplying the end of the range is optional.

    State example:

    .. code-block:: yaml

        infoblox_range.absent:
            - name: 'vlan10'

        infoblox_range.absent:
            - name:
            - start_addr: 127.0.1.20
    unameuresultuucommentuchangesu
start_addruend_addruinfoblox.get_ipv4_rangeRRualready deletedutestuwould attempt to delete rangeuinfoblox.delete_objecttobjrefu_refuFound {0} - {1}uolduRemovedunewN(RRRR	R
RR(R
RRRRRR((s>/usr/lib/python2.7/site-packages/salt/states/infoblox_range.pytabsent�s6"	 &





N(t__doc__t
__future__RRRR	RR(((s>/usr/lib/python2.7/site-packages/salt/states/infoblox_range.pyt<module>s~

Zerion Mini Shell 1.0