??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ßUdac @ s¾ d d l Z d d l m Z d d l m Z d d l m Z g e d d ƒ D] Z d d e ^ qL Z d „ Z
d
„ Z d „ Z d „ Z
e d
„ Z d „ Z d „ Z d „ Z d „ Z d S( iÿÿÿÿN( t pack( t inet_ntoa( t zipi i i i c C st t | ƒ j d ƒ } t | ƒ d k s+ t SxB | D]: } y t | ƒ t k rV t ‚ n Wq2 t k
rk t SXq2 Wt S( Nt .i ( t strt splitt lent Falset intt VALID_MASKSt
ValueErrort True( t valt partst part( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt
is_netmask s
c C s; y" d t | ƒ k o d k SSWn t k
r6 t SXd S( Ni i ( R R
R ( R ( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt
is_masklen s "
c C sf t | ƒ s t d ƒ ‚ n d } x/ t d t | ƒ d ƒ D] } | d | >O} q; Wt t d | ƒ ƒ S( s! converts a masklen to a netmask s invalid value for maskleni i i s >I( R R
t rangeR R R ( R t bitst i( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt
to_netmask$ s c C st t | ƒ s t d | ƒ ‚ n t ƒ } x? | j d ƒ D]. } t t | ƒ ƒ j d ƒ } | j | ƒ q8 Wt | ƒ S( s! converts a netmask to a masklen s invalid value for netmask: %sR t 1( R R
t listR t binR t countt appendt sum( R R t xt octet( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt
to_masklen0 s c C sõ y1 t | ƒ s t ‚ n t | ƒ } t | ƒ } Wn t k
rP t | ƒ } n X| j d ƒ } | j d ƒ } t ƒ } x@ t | | ƒ D]/ \ } } | j t t | ƒ t | ƒ @ƒ ƒ qˆ W| rÞ d d j
| ƒ t | ƒ f Sd d j
| ƒ | f S( s: coverts an addr / mask pair to a subnet in cidr notation R s %s %ss %s/%s( R R
R R R R R R R R t join( t addrt maskt dotted_notationt cidrt networkt s_addrt s_mask( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt to_subnet= s
'c C sä | j d ƒ d } g } x: | j d ƒ D]) } | j | ƒ t | ƒ d k r) Pq) q) Wt | ƒ d k rx | j d ƒ n d } x= | D]5 } | d k rª | t | ƒ 7} n | t d ƒ 7} q… W| j d ƒ sà | t d ƒ 7} n | S( se IPv6 addresses are eight groupings. The first four groupings (64 bits) comprise the subnet address. s ::i t :i t ( R R R R t endswith( R t ipv6_prefixt found_groupst groupt network_addr( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt to_ipv6_subnetS s
c C sä | j d ƒ d } g } x: | j d ƒ D]) } | j | ƒ t | ƒ d k r) Pq) q) Wt | ƒ d k rx | j d ƒ n d } x= | D]5 } | d k rª | t | ƒ 7} n | t d ƒ 7} q… W| j d ƒ sà | t d ƒ 7} n | S( sg IPv6 addresses are eight groupings. The first three groupings (48 bits) comprise the network address. s ::i R' i R( ( R R R R R) ( R R* R+ R, R- ( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt to_ipv6_networkq s
c C sG d } x: | j d ƒ D]) } | t t | ƒ ƒ d j d ƒ 7} q Wt S( s converts a netmask to bits R( R i i ( R R R t zfillR ( R R R ( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt to_bits s 'c C s( t j d ƒ } t | j | j ƒ ƒ ƒ S( s½
Validate MAC address for given string
Args:
mac_address: string to validate as MAC address
Returns: (Boolean) True if string is valid MAC address, otherwise False
s/ [0-9a-f]{2}([-:])[0-9a-f]{2}(\1[0-9a-f]{2}){4}$( t ret compilet boolt matcht lower( t mac_addresst mac_addr_regex( ( sG /usr/lib/python2.7/site-packages/ansible/module_utils/common/network.pyt is_mac• s i ( R2 t structR t socketR t ansible.module_utils.six.movesR R R R R R R R R R&