Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZyDddlm
Z
dd
lmZddlmZddlmZWnQek
r�ddlm
Z
dd
lmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZd efd!��YZd"�Ze d#kr�e�nd$S(%i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys
---
module: bigip_sys_daemon_log_tmm
short_description: Manage BIG-IP tmm daemon log settings
description:
  - Manage BIG-IP tmm log settings.
version_added: 2.8
options:
  arp_log_level:
    description:
      - Specifies the lowest level of ARP messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - error
      - informational
      - notice
      - warning
  http_compression_log_level:
    description:
      - Specifies the lowest level of HTTP compression messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - error
      - informational
      - notice
      - warning
  http_log_level:
    description:
      - Specifies the lowest level of HTTP messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - error
      - informational
      - notice
      - warning
  ip_log_level:
    description:
      - Specifies the lowest level of IP address messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - informational
      - notice
      - warning
  irule_log_level:
    description:
      - Specifies the lowest level of iRule messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - error
      - informational
      - notice
      - warning
  layer4_log_level:
    description:
      - Specifies the lowest level of Layer 4 messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - informational
      - notice
  net_log_level:
    description:
      - Specifies the lowest level of network messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - critical
      - debug
      - error
      - informational
      - notice
      - warning
  os_log_level:
    description:
      - Specifies the lowest level of operating system messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - alert
      - critical
      - debug
      - emergency
      - error
      - informational
      - notice
      - warning
  pva_log_level:
    description:
      - Specifies the lowest level of PVA messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - debug
      - informational
      - notice
  ssl_log_level:
    description:
      - Specifies the lowest level of SSL messages from the tmm daemon
        to include in the system log.
    type: str
    choices:
      - alert
      - critical
      - debug
      - emergency
      - error
      - informational
      - notice
      - warning
  state:
    description:
      - The state of the log level on the system. When C(present), guarantees
        that an existing log level is set to C(value).
    type: str
    choices:
      - present
    default: present
extends_documentation_fragment: f5
author:
  - Wojciech Wypior (@wojtek0806)
s�
- name: Set SSL log level to debug
  bigip_sys_daemon_log_tmm:
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
    ssl_log_level: debug
  delegate_to: localhost
s�
arp_log_level:
  description: Lowest level of ARP messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: error
http_compression_log_level:
  description: Lowest level of HTTP compression messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: debug
http_log_level:
  description: Lowest level of HTTP messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: notice
ip_log_level:
  description: Lowest level of IP address messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: warning
irule_log_level:
  description: Lowest level of iRule messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: error
layer4_log_level:
  description: Lowest level of Layer 4 messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: notice
net_log_level:
  description: Lowest level of network messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: critical
os_log_level:
  description: Lowest level of operating system messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: critical
pva_log_level:
  description: Lowest level of PVA messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: debug
ssl_log_level:
  description: Lowest level of SSL messages from the tmm daemon to log.
  returned: changed
  type: str
  sample: critical
(t
AnsibleModule(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tf5_argument_spect
Parametersc
B`s�eZi
dd6dd6dd6dd6dd	6d
d6dd
6dd6dd6dd6Zddddd	dd
dddg
Zdddddd
ddddg
Zdddddd
ddddg
ZRS(t
arp_log_leveltarpLogLevelthttp_compression_log_levelthttpCompressionLogLevelthttp_log_levelthttpLogLeveltip_log_levelt
ipLogLeveltirule_log_levelt
iruleLogLeveltlayer4_log_leveltlayer4LogLevelt
net_log_leveltnetLogLeveltos_log_levelt
osLogLevelt
pva_log_leveltpvaLogLevelt
ssl_log_leveltsslLogLevel(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatables(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR
�sR
		t
ApiParameterscB`seZRS((R"R#(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR(stModuleParameterscB`seZRS((R"R#(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR)stChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(R&tgetattrt_filter_paramst	Exception(tselftresultt
returnable((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyt	to_return!s
(R"R#R1(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR* st
UsableChangescB`seZRS((R"R#(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR2,stReportableChangescB`seZRS((R"R#(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR30st
DifferencecB`s&eZdd�Zd�Zd�ZRS(cC`s||_||_dS(N(twantthave(R.R5R6((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyt__init__5s	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(R+tAttributeErrort_Difference__default(R.tparamR/((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pytcompare9s

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(R+R5R6R8(R.R:tattr1tattr2((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyt	__default@s
N(R"R#tNoneR7R;R9(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR44s	t
ModuleManagercB`sYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(tgetR?RAR	RBtclientR)R5R(R6R2tchanges(R.targstkwargs((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR7Ks
cC`s�t|j|j�}tj}t�}xX|D]P}|j|�}|dkrUq.q.t|t�rt|j	|�q.|||<q.W|r�t
d|�|_tSt
S(NRB(R4R5R6R
R'tdictR;R?t
isinstancetupdateR2REtTruetFalse(R.tdiffR'tchangedtktchange((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyt_update_changed_optionsRs		
cC`smt�}|j�}td|jj��}|j�}|j|�|jtd|��|j|�|S(NRBRN(RHtpresentR3RER1RJt_announce_deprecations(R.R/RNt
reportableRE((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pytexec_moduleds	

cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopRDRAt	deprecate(R.R/twarningstwarning((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyRSps


cC`s
|j�S(N(RJ(R.((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyRRxscC`s=|j�|_|j�stS|jjr/tS|j�tS(N(tread_current_from_deviceR6t
should_updateRLRAt
check_modeRKtupdate_on_device(R.((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyRJ{s
cC`s|j�}|rtStS(N(RQRKRL(R.R/((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR^�scC`s�|jj�}dj|jjd|jjd�}|jjj|d|�}y|j�}Wn%tk
r�}t	t
|���nXd|kr�|ddkr�d|kr�t	|d��q�t	|j��ndS(Ns3https://{0}:{1}/mgmt/tm/sys/daemon-log-settings/tmmtservertserver_porttjsontcodei�tmessage(REt
api_paramstformatRDtprovidertapitpatchRct
ValueErrorR
tstrtcontent(R.RBturitresptresponsetex((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR`�s
cC`s�dj|jjd|jjd�}|jjj|�}y|j�}Wn%tk
rr}tt|���nXd|kr�|ddkr�d|kr�t|d��q�t|j	��nt
d|�S(Ns3https://{0}:{1}/mgmt/tm/sys/daemon-log-settings/tmmRaRbRdi�ReRB(RgRDRhRiRCRcRkR
RlRmR((R.RnRoRpRq((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR]�s
(R"R#R7RQRURSRRRJR^R`R](((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR@Js									tArgumentSpeccB`seZd�ZRS(cC`sZt|_dddg|_|jddg|_|jdddg|_td	td
|j�dtd
|j�dtd
|j�d
td
|jdg�dtd
|j�dtd
|j�dtd
|jdg�dtd
|j�dtd
|j�dtd
|j�dtddd
dg��}i|_|jjt�|jj|�dS(Ntdebugt
informationaltnoticeR\terrortalerttcriticalt	emergencyRtchoicesRRRRRRRRR tstatetdefaultRR(	RKtsupports_check_modetchoices_mintchoices_commontchoices_allRHt
argument_specRJR(R.R�((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyR7�s:		(R"R#R7(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyRr�scC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NR�R}RARW(
RrRR�R}R@RUt	exit_jsonR
t	fail_jsonRl(tspecRAtmmtresultsRq((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pytmain�s		t__main__N(!t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt%library.module_utils.network.f5.bigipR	t&library.module_utils.network.f5.commonR
RRtImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commonR
R(R)R*R2R3tobjectR4R@RrR�R"(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_daemon_log_tmm.pyt<module>s<


�5
6e-	

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