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_firewall_log_profile.pyo

�
�Udac@`ssddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddl
mZy�dd
l
mZddlmZddlmZddlmZddlmZddlmZddlmZddlmZWn�ek
r�dd
lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZ defd ��YZ!d!e"fd"��YZ#d#e"fd$��YZ$d%e"fd&��YZ%d'�Z&e'd(kroe&�nd)S(*i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys
---
module: bigip_firewall_log_profile
short_description: Manages AFM logging profiles configured in the system
description:
  - Manages AFM logging profiles configured in the system along with basic information about each profile.
version_added: 2.9
options:
  name:
    description:
      - Specifies the name of the log profile.
    type: str
    required: True
  description:
    description:
      - Description of the log profile.
    type: str
  dos_protection:
    description:
      - Configures DoS related settings of the log profile.
    suboptions:
      dns_publisher:
        description:
          - Specifies the name of the log publisher used for DNS DoS events.
          - To specify the log_publisher on a different partition from the AFM log profile, specify the name in fullpath
            format, e.g. C(/Foobar/log-publisher), otherwise the partition for log publisher
            is inferred from C(partition) module parameter.
        type: str
      sip_publisher:
        description:
          - Specifies the name of the log publisher used for SIP DoS events.
          - To specify the log_publisher on a different partition from the AFM log profile, specify the name in fullpath
            format, e.g. C(/Foobar/log-publisher), otherwise the partition for log publisher
            is inferred from C(partition) module parameter.
        type: str
      network_publisher:
        description:
          - Specifies the name of the log publisher used for DoS Network events.
          - To specify the log_publisher on a different partition from the AFM log profile, specify the name in fullpath
            format, e.g. C(/Foobar/log-publisher), otherwise the partition for log publisher
            is inferred from C(partition) module parameter.
        type: str
    type: dict
  ip_intelligence:
    description:
      - Configures IP Intelligence related settings of the log profile.
    suboptions:
      log_publisher:
        description:
          - Specifies the name of the log publisher used for IP Intelligence events.
          - To specify the log_publisher on a different partition from the AFM log profile, specify the name in fullpath
            format, e.g. C(/Foobar/log-publisher), otherwise the partition for log publisher
            is inferred from C(partition) module parameter.
        type: str
      rate_limit:
        description:
          - Defines a rate limit for all combined IP intelligence log messages per second. Beyond this rate limit,
            log messages are not logged until the threshold drops below the specified rate.
          - To specify an indefinite rate, use the value C(indefinite).
          - If specifying a numeric rate, the value must be between C(1) and C(4294967295).
        type: str
      log_rtbh:
        description:
          - Specifies, when C(yes), that remotely triggered blackholing events are logged.
        type: bool
      log_shun:
        description:
          - Specifies, when C(yes), that IP Intelligence shun list events are logged.
          - This option can only be set on C(global-network) built-in profile
        type: bool
      log_translation_fields:
        description:
          - This option is used to enable or disable the logging of translated (i.e server side) fields in IP
            Intelligence log messages.
          - Translated fields include (but are not limited to) source address/port, destination address/port,
            IP protocol, route domain, and VLAN.
        type: bool
    type: dict
  port_misuse:
    description:
      - Port Misuse log configuration.
    suboptions:
      log_publisher:
        description:
          - Specifies the name of the log publisher used for Port Misuse events.
          - To specify the log_publisher on a different partition from the AFM log profile, specify the name in fullpath
            format, e.g. C(/Foobar/log-publisher), otherwise the partition for log publisher
            is inferred from C(partition) module parameter.
        type: str
      rate_limit:
        description:
          - Defines a rate limit for all combined port misuse log messages per second. Beyond this rate limit,
            log messages are not logged until the threshold drops below the specified rate.
          - To specify an indefinite rate, use the value C(indefinite).
          - If specifying a numeric rate, the value must be between C(1) and C(4294967295).
        type: str
    type: dict
  partition:
    description:
      - Device partition to create log profile on.
      - Parameter also used when specifying names for log publishers, unless log publisher names are in fullpath format.
    type: str
    default: Common
  state:
    description:
      - When C(state) is C(present), ensures the resource exists.
      - When C(state) is C(absent), ensures that resource is removed. Attempts to remove built-in system profiles are
        ignored and no change is returned.
    type: str
    choices:
      - present
      - absent
    default: present
extends_documentation_fragment: f5
author:
  - Wojciech Wypior (@wojtek0806)
sA
- name: Create a basic log profile with port misuse
  bigip_firewall_log_profile:
    name: barbaz
    port_misuse:
      rate_limit: 30000
      log_publisher: local-db-pub
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Change ip_intelligence settings, publisher on different partition, remove port misuse
  bigip_firewall_log_profile:
    name: barbaz
    ip_intelligence:
      rate_limit: 400000
      log_translation_fields: yes
      log_rtbh: yes
      log_publisher: "/foobar/non-local-db"
    port_misuse:
      log_publisher: ""
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Create a log profile with dos protection, different partition
  bigip_firewall_log_profile:
    name: foobar
    partition: foobar
    dos_protection:
      dns_publisher: "/Common/local-db-pub"
      sip_publisher: "non-local-db"
      network_publisher: "/Common/local-db-pub"
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Remove log profile
  bigip_firewall_log_profile:
    name: barbaz
    partition: Common
    state: absent
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost
s	
description:
  description: New description of the AFM log profile.
  returned: changed
  type: str
  sample: This is my description
dos_protection:
  description: Log publishers used in DoS related settings of the log profile.
  type: complex
  returned: changed
  contains:
    dns_publisher:
      description: The name of the log publisher used for DNS DoS events.
      returned: changed
      type: str
      sample: "/Common/local-db-publisher"
    sip_publisher:
      description: The name of the log publisher used for SIP DoS events.
      returned: changed
      type: str
      sample: "/Common/local-db-publisher"
    network_publisher:
      description: The name of the log publisher used for DoS Network events.
      returned: changed
      type: str
      sample: "/Common/local-db-publisher"
  sample: hash/dictionary of values
ip_intelligence:
  description: IP Intelligence related settings of the log profile.
  type: complex
  returned: changed
  contains:
    log_publisher:
      description: The name of the log publisher used for IP Intelligence events.
      returned: changed
      type: str
      sample: "/Common/local-db-publisher"
    rate_limit:
      description: The rate limit for all combined IP intelligence log messages per second.
      returned: changed
      type: str
      sample: "indefinite"
    log_rtbh:
      description: Logging of remotely triggered blackholing events.
      returned: changed
      type: bool
      sample: yes
    log_shun:
      description: Logging of IP Intelligence shun list events.
      returned: changed
      type: bool
      sample: no
    log_translation_fields:
      description: Logging of translated fields in IP Intelligence log messages.
      returned: changed
      type: bool
      sample: no
  sample: hash/dictionary of values
port_misuse:
  description: Port Misuse related settings of the log profile.
  type: complex
  returned: changed
  contains:
    log_publisher:
      description: The name of the log publisher used for Port Misuse events.
      returned: changed
      type: str
      sample: "/Common/local-db-publisher"
    rate_limit:
      description: The rate limit for all combined Port Misuse log messages per second.
      returned: changed
      type: str
      sample: "indefinite"
  sample: hash/dictionary of values
(t
AnsibleModule(tenv_fallback(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tfq_name(ttransform_name(tf5_argument_spec(tflatten_boolean(tcompare_dictionaryt
Parametersc
B`s�eZidd6dd6dd6dd6dd	6Zd
ddd	ddgZdddddd
ddd
ddddg
Zdddd
ddd
ddddgZRS(tip_intelligencetipIntelligencetport_misuset
portMisuset
dns_publishertprotocolDnsDosPublishert
sip_publishertprotocolSipDosPublishertnetwork_publishertdosNetworkPublishertdescriptiontip_log_publishert
ip_rate_limittip_log_rthbtip_log_shuntip_log_translation_fieldstport_rate_limittport_log_publisher(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatables(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRsH
		t
ApiParameterscB`sqeZed��Zed��Zed��Zed��Zed��Zed��Zed��Z	RS(cC`s|jdjdd�}|S(NRtlogPublisher(t_valuestgettNone(tselftresult((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRQscC`s|jddS(NRt
aggregateRate(R-(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRVscC`s|jddS(NRR2(R-(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR#ZscC`s|jdjdd�}|S(NRR,(R-R.R/(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR$^scC`s|jddS(NRtlogRtbh(R-(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pytip_log_rtbhcscC`s&|jddkrdS|jddS(Ntnamesglobal-networkRtlogShun(R-R/(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR!gscC`s|jddS(NRtlogTranslationFields(R-(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR"ms(
R%R&tpropertyRRR#R$R4R!R"(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR+PstModuleParameterscB`s�eZd�Zd�Zed��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed	��Zed
��Z
ed��ZRS(cC`s0|dkrdS|dkr iSt|j|�S(Nttnone(R:R;(R/R
t	partition(R0t
log_publisher((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_transform_log_publisherss
cC`s\|dkrdS|dkr dSdt|�ko=dknrLt|�Std��dS(Nt
indefiniteI����isEValid 'maximum_age' must be in range 0 - 4294967295, or 'indefinite'.(R/tintR(R0t
rate_limit((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_validate_rate_limitzs"
cC`sR|jddkrdSt|jdd�}|dkr>dS|dkrNdS|S(NRtlog_rtbhtyestenabledtnotdisabled(R-R/R(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR4�scC`si|jddkrdSd|jdkr.dSt|jdd�}|dkrUdS|dkredS|S(	NRsglobal-networkR5tlog_shunRDRERFRG(R-R/R(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR!�scC`sR|jddkrdSt|jdd�}|dkr>dS|dkrNdS|S(NRtlog_translation_fieldsRDRERFRG(R-R/R(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR"�scC`s5|jddkrdS|j|jdd�}|S(NRR=(R-R/R>(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�scC`s/|jddkrdS|j|jdd�S(NRRA(R-R/RB(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�scC`s/|jddkrdS|j|jdd�S(NRRA(R-R/RB(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR#�scC`s5|jddkrdS|j|jdd�}|S(NRR=(R-R/R>(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR$�scC`s5|jddkrdS|j|jdd�}|S(Ntdos_protectionR(R-R/R>(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�scC`s5|jddkrdS|j|jdd�}|S(NRJR(R-R/R>(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�scC`s5|jddkrdS|j|jdd�}|S(NRJR(R-R/R>(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�s(R%R&R>RBR8R4R!R"RRR#R$RRR(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR9rs		
tChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(R)tgetattrt_filter_paramst	Exception(R0R1t
returnable((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt	to_return�s
(R%R&RP(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRK�st
UsableChangescB`s&eZed��Zed��ZRS(cC`sgtd|jdd|jdd|jdd|jdd	|jd
�}|j|�}|rc|SdS(NR,RR2RR3R4R6R!R7R"(tdictR-RM(R0t	to_filterR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�s



cC`s@td|jdd|jd�}|j|�}|r<|SdS(NR,R$R2R#(RRR-RM(R0RSR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�s
(R%R&R8RR(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRQ�s
tReportableChangescB`s}eZddddgZd�Zed��Zed��Zed��Zed��Zed	��Z	ed
��Z
RS(RRRRJcC`s|dkrdS|SdS(NI����R?((R0tvalue((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_change_rate_limit_valuescC`st|jd�}|S(NR4(RR-(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR scC`st|jd�}|S(NR!(RR-(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR!scC`st|jd�}|S(NR"(RR-(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR"scC`s{|jddkrdStd|jdd|j|jd�d|jd|jd|j�}|j|�}|rw|SdS(	NRR=RRARRCRHRI(R-R/RRRVR4R!R"RM(R0RSR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRs
		cC`s`|jddkrdStd|jdd|j|jd��}|j|�}|r\|SdS(NRR=R$RAR#(R-R/RRRVRM(R0RSR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR)s
cC`sCtd|jdd|jdd|jd�}|j|�}|S(NRRR(RRR-RM(R0RSR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRJ5s

(R%R&R)RVR8R R!R"RRRJ(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRT�s		t
DifferencecB`sqeZdd�Zd�Zd�Zed��Zed��Zed��Z	ed��Z
ed��ZRS(	cC`s||_||_dS(N(twantthave(R0RXRY((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt__init__As	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(RLtAttributeErrort_Difference__default(R0tparamR1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pytcompareEs

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(RLRXRYR[(R0R]tattr1tattr2((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt	__defaultLs
cC`st|jj|jj�}|S(N(RRXRRY(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRUscC`st|jj|jj�}|S(N(RRXR$RY(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR$ZscC`st|jj|jj�}|S(N(RRXRRY(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR_scC`st|jj|jj�}|S(N(RRXRRY(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRdscC`st|jj|jj�}|S(N(RRXRRY(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRisN(R%R&R/RZR^R\R8RR$RRR(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRW@s			t
ModuleManagercB`s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZRS(cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(R.R/RcR
RdtclientR9RXR+RYRQtchanges(R0targstkwargs((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRZps
cC`sji}xBtjD]7}t|j|�dk	rt|j|�||<qqW|rftd|�|_ndS(NRd(RR)RLRXR/RQRf(R0tchangedtkey((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_set_changed_optionsws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(NRd(RWRXRYRR*RRR^R/t
isinstancetupdateRQRftTruetFalse(R0tdiffR*Ritktchange((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_update_changed_optionss		
cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopReRct	deprecate(R0R1twarningstwarning((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt_announce_deprecations�s


cC`s�t}t�}|jj}|dkr6|j�}n|dkrQ|j�}ntd|jj��}|j�}|j	|�|j	td|��|j
|�|S(NtpresenttabsentRdRi(RoRRRXtstateR|R}RTRfRPRmR{(R0RiR1R~t
reportableRf((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pytexec_module�s	

cC`s$|j�r|j�S|j�SdS(N(texistsRmtcreate(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR|�s
cC`sBddddg}|jj|kr(tS|j�r>|j�StS(NsLog all requestssLog illegal requestssglobal-networks	local-dos(RXR5RoR�tremove(R0t	built_ins((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR}�s
cC`s|j�}|rtStS(N(RsRnRo(R0R1((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt
should_update�scC`s=|j�|_|j�stS|jjr/tS|j�tS(N(tread_current_from_deviceRYR�RoRct
check_modeRntupdate_on_device(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRm�s
cC`s9|jjrtS|j�|j�r5td��ntS(NsFailed to delete the resource.(RcR�Rntremove_from_deviceR�R(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR��s
cC`s(|j�|jjrtS|j�tS(N(RkRcR�Rntcreate_on_device(R0((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR��s


cC`s�dj|jjd|jjdt|jj|jj��}|jjj|�}y|j	�}Wnt
k
rwtSX|jdks�d|kr�|ddkr�tSt
S(Ns0https://{0}:{1}/mgmt/tm/security/log/profile/{2}tservertserver_porti�tcode(tformatRetproviderRRXR<R5tapiR.tjsont
ValueErrorRoRRn(R0turitresptresponse((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR��s


+cC`s�|jj�}|jj|d<|jj|d<dj|jjd|jjd�}|jjj	|d|�}y|j
�}Wn%tk
r�}tt
|���nXd|kr�|ddkr�d|kr�t|d��q�t|j��ntS(
NR5R<s-https://{0}:{1}/mgmt/tm/security/log/profile/R�R�R�R�i�i�i�tmessage(i�i�i�(Rft
api_paramsRXR5R<R�ReR�R�tpostR�R�RtstrtcontentRn(R0RdR�R�R�tex((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR��s 
cC`s�|jj�}dj|jjd|jjdt|jj|jj��}|jj	j
|d|�}y|j�}Wn%tk
r�}t
t|���nXd|kr�|dd
kr�d	|kr�t
|d	��q�t
|j��ndS(Ns0https://{0}:{1}/mgmt/tm/security/log/profile/{2}R�R�R�R�i�i�i�R�(i�i�i�(RfR�R�ReR�RRXR<R5R�tpatchR�R�RR�R�(R0RdR�R�R�R�((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR��s

cC`sydj|jjd|jjdt|jj|jj��}|jjj|�}|j	dkrft
St|j��dS(Ns0https://{0}:{1}/mgmt/tm/security/log/profile/{2}R�R�i�(
R�ReR�RRXR<R5R�tdeleteRRnRR�(R0R�R�((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�s

cC`s�dj|jjd|jjdt|jj|jj��}|jjj|�}y|j	�}Wn%t
k
r�}tt|���nXd|kr�|dd
kr�d|kr�t|d��q�t|j
��ntd	|�S(Ns0https://{0}:{1}/mgmt/tm/security/log/profile/{2}R�R�R�i�i�i�R�Rd(i�i�i�(R�ReR�RRXR<R5R�R.R�R�RR�R�R+(R0R�R�R�R�((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�s

(R%R&RZRkRsR{R�R|R}R�RmR�R�R�R�R�R�R�(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRbos 																tArgumentSpeccB`seZd�ZRS(cC`sDt|_tdtdt�dt�dtdddtdt�d	t�d
t���dtdddtdt�d
tdd�dt�dtdd�dtdd���dtdddtdt�dt���dtdddtdgf�dtdddddg��}i|_|jjt�|jj|�dS(NR5trequiredRRJttypeRRtoptionsRRRRR=RItboolRARCRHRR<tdefaulttCommontfallbacktF5_PARTITIONR~R|tchoicesR}(Rntsupports_check_modeRRR	t
argument_specRmR(R0R�((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyRZ1sB									(R%R&RZ(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyR�0scC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NR�R�RcRu(
R�RR�R�RbR�t	exit_jsonRt	fail_jsonR�(tspecRctmmtresultsR�((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pytmain_s		t__main__N((t
__future__RRRR�t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRR	t%library.module_utils.network.f5.bigipR
t&library.module_utils.network.f5.commonRRR
RRRt'library.module_utils.network.f5.compareRtImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commont'ansible.module_utils.network.f5.compareRR+R9RKRQRTtobjectRWRbR�R�R%(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_firewall_log_profile.pyt<module>sN


v7L
1"fC/�/	

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