�
�Udac @` s� d d l m Z m Z m Z e Z i d g d 6d d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
d d
l m Z m Z m Z y d d l m Z Wn e k
r� n Xd � Z d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functiont previewt statust communityt supported_bys 1.1t metadata_versions
---
module: ig_unit_information
short_description: Get unit information from an Ingate SBC.
description:
- Get unit information from an Ingate SBC.
version_added: 2.8
extends_documentation_fragment: ingate
author:
- Ingate Systems AB (@ingatesystems)
s�
- name: Get unit information
ig_unit_information:
client:
version: v1
scheme: http
address: 192.168.1.1
username: alice
password: foobar
s�
unit-information:
description: Information about the unit
returned: success
type: complex
contains:
installid:
description: The installation identifier
returned: success
type: str
sample: any
interfaces:
description: List of interface names
returned: success
type: str
sample: eth0 eth1 eth2 eth3 eth4 eth5
lang:
description: The unit's language
returned: success
type: str
sample: en
lic_email:
description: License email information
returned: success
type: str
sample: [email protected]
lic_mac:
description: License MAC information
returned: success
type: str
sample: any
lic_name:
description: License name information
returned: success
type: str
sample: Example Inc
macaddr:
description: The MAC address of the first interface
returned: success
type: str
sample: 52:54:00:4c:e2:07
mode:
description: Operational mode of the unit
returned: success
type: str
sample: Siparator
modules:
description: Installed module licenses
returned: success
type: str
sample: failover vpn sip qturn ems qos rsc voipsm
patches:
description: Installed patches on the unit
returned: success
type: list
sample: []
product:
description: The product name
returned: success
type: str
sample: Software SIParator/Firewall
serial:
description: The serial number of the unit
returned: success
type: str
sample: IG-200-839-2008-0
systemid:
description: The system identifier of the unit
returned: success
type: str
sample: IG-200-839-2008-0
unitname:
description: The name of the unit
returned: success
type: str
sample: Testname
version:
description: Firmware version
returned: success
type: str
sample: 6.2.0-beta2
( t
AnsibleModule( t to_native( t ingate_argument_spect ingate_create_clientt is_ingatesdk_installed( t ingatesdkc C` s t | j � } | j � } | S( N( R t paramst unit_information( t modulet
api_clientt response( ( sV /usr/lib/python2.7/site-packages/ansible/modules/network/ingate/ig_unit_information.pyt make_request� s c C` s� t � } t d | d t � } t | � t d t � } y! t | � } | j | d � Wn, t j k
r� } | j d t
| � � n X| j | � d S( Nt
argument_spect supports_check_modet changedi t msg( R
R t FalseR t dictR t updateR
t SdkErrort fail_jsonR t exit_json( R R t resultR t e( ( sV /usr/lib/python2.7/site-packages/ansible/modules/network/ingate/ig_unit_information.pyt main� s
t __main__N( t
__future__R R R t typet
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR t ansible.module_utils._textR t* ansible.module_utils.network.ingate.commonR
R R t ingateR
t ImportErrorR R t __name__( ( ( sV /usr/lib/python2.7/site-packages/ansible/modules/network/ingate/ig_unit_information.pyt <module> s&