%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/matchers/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/matchers/ipcidr_match.pyc |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z d d l Z e j
rb d d l Z n d d l j
j Z e j e � Z d d � Z d S( u%
This is the default ipcidr matcher.
i ( t absolute_importt print_functiont unicode_literalsN( t sixc C@ s� | s t } n y t j | � } Wn5 y t j | � } WqZ t j d | � g SXn Xd j | j � } | d } | | k r� t } nS t | t j
t j f � r� t j
| � | | k } n t j j j | | | � } | S( u6
Matches based on IP address or CIDR notation
u Invalid IP/CIDR target: %su ipv{0}u grains( t __opts__t ipaddresst
ip_addresst
ip_networkt logt errort formatt versiont Falset
isinstancet IPv4Addresst IPv6AddressR t text_typet saltt utilst networkt in_subnet( t tgtt optst protot grainst match( ( s>