Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/netvisor/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_admin_service.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: pn_admin_service
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify admin-service
description:
  - This module is used to modify services on the server-switch.
options:
  pn_cliswitch:
    description:
      - Target switch to run the CLI on.
    required: False
    type: str
  state:
    description:
      - State the action to perform. Use C(update) to modify the admin-service.
    required: True
    type: str
    choices: ['update']
  pn_web:
    description:
      - Web (HTTP) to enable or disable.
    required: False
    type: bool
  pn_web_ssl:
    description:
      - Web SSL (HTTPS) to enable or disable.
    required: False
    type: bool
  pn_snmp:
    description:
      - Simple Network Monitoring Protocol (SNMP) to enable or disable.
    required: False
    type: bool
  pn_web_port:
    description:
      - Web (HTTP) port to enable or disable.
    required: False
    type: str
  pn_web_ssl_port:
    description:
      - Web SSL (HTTPS) port to enable or disable.
    required: False
    type: str
  pn_nfs:
    description:
      - Network File System (NFS) to enable or disable.
    required: False
    type: bool
  pn_ssh:
    description:
      - Secure Shell to enable or disable.
    required: False
    type: bool
  pn_web_log:
    description:
      - Web logging to enable or disable.
    required: False
    type: bool
  pn__if:
    description:
      - administrative service interface.
    required: False
    type: str
    choices: ['mgmt', 'data']
  pn_icmp:
    description:
      - Internet Message Control Protocol (ICMP) to enable or disable.
    required: False
    type: bool
  pn_net_api:
    description:
      - Netvisor API to enable or disable APIs.
    required: False
    type: bool
s`
- name: admin service functionality
  pn_admin_service:
    pn_cliswitch: "sw01"
    state: "update"
    pn__if: "mgmt"
    pn_web: False
    pn_icmp: True

- name: admin service functionality
  pn_admin_service:
    pn_cliswitch: "sw01"
    state: "update"
    pn_web: False
    pn__if: "mgmt"
    pn_snmp: True
    pn_net_api: True
    pn_ssh: True
s�
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stdout:
  description: set of responses from the admin-service command.
  returned: always
  type: list
stderr:
  description: set of error responses from the admin-service command.
  returned: on error
  type: list
changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
(t
AnsibleModule(tpn_clitbooleanArgstrun_clic!C`sntdd�}tdtdtdtdd�dtdtddd	|j��d
tdtdd�dtdtdd�d
tdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtddd	ddg�dtdtdd�dtdtdd��
ddddgggdd
dd
dddddddg
g�}|jd}|jd}|jd
}|jd}|jd
}|jd}|jd}|jd}	|jd}
|jd}|jd}|jd}
|jd}||}t||�}|dkrZ|d|7}|ry|d|7}n|r�|d|7}n|r�|d|7}n|t|dd�7}|t|d d!�7}|t|d"d#�7}|t|	d$d%�7}|t|
d&d'�7}|t|
d(d)�7}|t|d*d+�7}|t|d,d-�7}nt|||�d.S(/s' This section is for arguments parsing tupdatesadmin-service-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicestpn_webtboolt
pn_web_ssltpn_snmptpn_web_porttpn_web_ssl_porttpn_nfstpn_ssht
pn_web_logtpn__iftmgmttdatatpn_icmpt
pn_net_apitrequired_iftrequired_one_ofs %s s if s
 web-port s web-ssl-port twebsno-websweb-ssls
no-web-ssltsnmpsno-snmptnfssno-nfstsshsno-sshticmpsno-icmpsnet-apis
no-net-apisweb-logs
no-web-logN(	tdictRtFalsetTruetkeystparamsR	R
R(t	state_maptmodulet	cliswitchRR$tweb_sslR%tweb_porttweb_ssl_portR&R'tweb_logt_ifR(tnet_apitcommandtcli((sU/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_admin_service.pytmain�sl	!		













t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt-ansible.module_utils.network.netvisor.pn_nvosR	R
RR9t__name__(((sU/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_admin_service.pyt<module>s


O	H

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