%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/firewall.pyo |
� ���^c @@ s; d Z d d l m Z m Z m Z d � Z d d � Z d S( uD State to check firewall configurations .. versionadded:: 2016.3.0 i ( t absolute_importt print_functiont unicode_literalsc C@ s d t k r d St S( u( Load only if network is loaded u network.connectu firewall( t __salt__t False( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/firewall.pyt __virtual__ s c K@ s� | } i | d 6t d 6i d 6d d 6} d | k rM t j d t � | d <n | d rn t | d <d | d <n2 t d | | | � } | 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' u nameu resultu changesu u commentu testu The connection will be testedu network.connect( t Truet __opts__t getR R ( t namet portt kwargst hostt rett results( ( s8 /usr/lib/python2.7/site-packages/salt/states/firewall.pyt check s N( t __doc__t __future__R R R R t NoneR ( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/firewall.pyt <module> s