%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/firewall.pyc

�
���^c@@s;dZddlmZmZmZd�Zdd�ZdS(uD
State to check firewall configurations

.. versionadded:: 2016.3.0
i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(u(
    Load only if network is loaded
    unetwork.connectufirewall(t__salt__tFalse(((s8/usr/lib/python2.7/site-packages/salt/states/firewall.pyt__virtual__
scK@s�|}i|d6td6id6dd6}d|krMtjdt�|d<n|drnt|d<d|d<n2td|||�}|d|d<|d|d<|S(	u�
    Checks if there is an open connection from the minion to the defined
    host on a specific port.

    name
      host name or ip address to test connection to

    port
      The port to test the connection on

    kwargs
      Additional parameters, parameters allowed are:
        proto (tcp or udp)
        family (ipv4 or ipv6)
        timeout

    .. code-block:: yaml

      testgoogle:
        firewall.check:
          - name: 'google.com'
          - port: 80
          - proto: 'tcp'

    unameuresultuchangesuucommentutestuThe connection will be testedunetwork.connect(tTruet__opts__tgetRR(tnametporttkwargsthosttrettresults((s8/usr/lib/python2.7/site-packages/salt/states/firewall.pytchecks




N(t__doc__t
__future__RRRRtNoneR(((s8/usr/lib/python2.7/site-packages/salt/states/firewall.pyt<module>s		

Zerion Mini Shell 1.0