Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/net_tools/nios/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/net_tools/nios/nios_network_view.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys,
---
module: nios_network_view
version_added: "2.5"
author: "Peter Sprygada (@privateip)"
short_description: Configure Infoblox NIOS network views
description:
  - Adds and/or removes instances of network view objects from
    Infoblox NIOS servers.  This module manages NIOS C(networkview) objects
    using the Infoblox WAPI interface over REST.
  - Updates instances of network view object from Infoblox NIOS servers.
requirements:
  - infoblox-client
extends_documentation_fragment: nios
options:
  name:
    description:
      - Specifies the fully qualified hostname to add or remove from
        the system. User can also update the hostname as it is possible
        to pass a dict containing I(new_name), I(old_name). See examples.
    required: true
    aliases:
      - network_view
  extattrs:
    description:
      - Allows for the configuration of Extensible Attributes on the
        instance of the object.  This argument accepts a set of key / value
        pairs for configuration.
  comment:
    description:
      - Configures a text string comment to be associated with the instance
        of this object.  The provided text string will be configured on the
        object instance.
  state:
    description:
      - Configures the intended state of the instance of the object on
        the NIOS server.  When this value is set to C(present), the object
        is configured on the device and when this value is set to C(absent)
        the value is removed (if necessary) from the device.
    default: present
    choices:
      - present
      - absent
s�
- name: configure a new network view
  nios_network_view:
    name: ansible
    state: present
    provider:
      host: "{{ inventory_hostname_short }}"
      username: admin
      password: admin
  connection: local
- name: update the comment for network view
  nios_network_view:
    name: ansible
    comment: this is an example comment
    state: present
    provider:
      host: "{{ inventory_hostname_short }}"
      username: admin
      password: admin
  connection: local
- name: remove the network view
  nios_network_view:
    name: ansible
    state: absent
    provider:
      host: "{{ inventory_hostname_short }}"
      username: admin
      password: admin
  connection: local
- name: update a existing network view
  nios_network_view:
    name: {new_name: ansible-new, old_name: ansible}
    state: present
    provider:
      host: "{{ inventory_hostname_short }}"
      username: admin
      password: admin
  connection: local
s # (t
AnsibleModule(t
WapiModule(tNIOS_NETWORK_VIEWc
C`s�tdtdtddgdt�dtdd�d	t��}td
tdt�dtdd
dd
dg��}|j|�|jtj�td|dt�}t|�}|jt|�}|j|�dS(s+ Main entry point for module execution
    tnametrequiredtaliasestnetwork_viewtib_reqtextattrsttypetdicttcommenttprovidertstatetdefaulttpresenttchoicestabsentt
argument_spectsupports_check_modeN(	RtTruetupdateR	t
provider_specRtrunR
t	exit_json(tib_specRtmoduletwapitresult((sT/usr/lib/python2.7/site-packages/ansible/modules/net_tools/nios/nios_network_view.pytmainis
	t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt'ansible.module_utils.net_tools.nios.apiR	R
R%t__name__(((sT/usr/lib/python2.7/site-packages/ansible/modules/net_tools/nios/nios_network_view.pyt<module>s


.(	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]