/usr/lib/python2.6/site-packages
NameSizeModeActions
appdirs-1.4.0.dist-info/-0755rm
argparse-1.4.0.dist-info/-0755rm
babel/-0755rm
Babel-2.1.1.dist-info/-0755rm
Babel-2.3.4.dist-info/-0755rm
backports/-0755rm
backports.ssl_match_hostname-3.4.0.2-py2.6.egg-info/-0755rm
boto/-0755rm
boto-2.34.0-py2.6.egg-info/-0755rm
cffi-1.6.0-py2.6-linux-x86_64.egg/-0755rm
chardet/-0755rm
chardet-2.2.1-py2.6.egg-info/-0755rm
cinderclient/-0755rm
clcommon/-0755rm
cliff/-0755rm
cliff-1.15.0.dist-info/-0755rm
cliff-2.0.0.dist-info/-0755rm
clifftablib/-0755rm
cliff_tablib-1.1-py2.6.egg-info/-0755rm
cloudinit/-0755rm
cloud_init-0.7.5-py2.6.egg-info/-0755rm
cmd2-0.6.8-py2.6.egg-info/-0755rm
concurrent/-0755rm
cryptography-1.3.1-py2.6-linux-x86_64.egg/-0755rm
dateutil/-0755rm
dbus/-0755rm
debtcollector/-0755rm
debtcollector-0.8.0.dist-info/-0755rm
debtcollector-1.3.0.dist-info/-0755rm
decorator-4.0.9.dist-info/-0755rm
dict-0.0.5-py2.6.egg-info/-0755rm
distribute-0.6.10-py2.6.egg-info/-0755rm
dns/-0755rm
enum/-0755rm
enum34-1.0.4-py2.6.egg-info/-0755rm
enum34-1.1.3-py2.6.egg/-0755rm
funcsigs/-0755rm
funcsigs-1.0.2.dist-info/-0755rm
futures-3.0.3.dist-info/-0755rm
futures-3.0.5.dist-info/-0755rm
get-0.0.7-py2.6.egg-info/-0755rm
glanceclient/-0755rm
idna/-0755rm
idna-2.0.dist-info/-0755rm
idna-2.1-py2.6.egg/-0755rm
iniparse/-0755rm
iotop/-0755rm
iotop-0.3.2-py2.6.egg-info/-0755rm
ipaddress-1.0.14-py2.6.egg-info/-0755rm
ipaddress-1.0.16-py2.6.egg/-0755rm
iso8601/-0755rm
iso8601-0.1.10-py2.6.egg-info/-0755rm
iso8601-0.1.11.dist-info/-0755rm
jsonpatch-1.2-py2.6.egg-info/-0755rm
jsonpatch-1.11.dist-info/-0755rm
jsonpatch-1.13.dist-info/-0755rm
jsonpointer-1.9.dist-info/-0755rm
jsonpointer-1.10.dist-info/-0755rm
jsonschema/-0755rm
jsonschema-2.5.1.dist-info/-0755rm
keystoneauth1/-0755rm
keystoneauth1-1.1.0.dist-info/-0755rm
keystoneauth1-2.6.0.dist-info/-0755rm
keystoneclient/-0755rm
markdown/-0755rm
monotonic-0.4-py2.6.egg-info/-0755rm
monotonic-1.1.dist-info/-0755rm
ndg/-0755rm
ndg_httpsclient-0.4.0-py2.6.egg-info/-0755rm
netaddr/-0755rm
netaddr-0.7.18.dist-info/-0755rm
neutronclient/-0755rm
nose/-0755rm
nose-0.10.4-py2.6.egg-info/-0755rm
novaclient/-0755rm
oauth/-0755rm
oauth-1.0.1-py2.6.egg-info/-0755rm
openstack/-0755rm
openstackclient/-0755rm
openstacksdk-0.8.5.dist-info/-0755rm
oslo.config-2.4.0.dist-info/-0755rm
oslo.config-3.9.0.dist-info/-0755rm
oslo.i18n-2.6.0.dist-info/-0755rm
oslo.i18n-3.6.0.dist-info/-0755rm
oslo.serialization-1.9.0.dist-info/-0755rm
oslo.serialization-2.4.0.dist-info/-0755rm
oslo.utils-2.5.0.dist-info/-0755rm
oslo.utils-3.8.0.dist-info/-0755rm
oslo_config/-0755rm
oslo_i18n/-0755rm
oslo_serialization/-0755rm
oslo_utils/-0755rm
os_client_config/-0755rm
os_client_config-1.8.1.dist-info/-0755rm
os_client_config-1.17.0.dist-info/-0755rm
pbr/-0755rm
pbr-1.8.0.dist-info/-0755rm
pbr-1.9.1.dist-info/-0755rm
pip-7.1.2-py2.6.egg/-0755rm
pip-8.1.1-py2.6.egg/-0755rm
pkg_resources/-0755rm
positional/-0755rm
positional-1.1.0-py2.6.egg-info/-0755rm
post-0.0.5-py2.6.egg-info/-0755rm
prettytable-0.7.2-py2.6.egg-info/-0755rm
public-0.0.0-py2.6.egg-info/-0755rm
pyasn1/-0755rm
pyasn1-0.0.12a-py2.6.egg-info/-0755rm
pyasn1-0.1.9-py2.6.egg/-0755rm
pyasn1-0.1.9.dist-info/-0755rm
pycparser/-0755rm
pycparser-2.14-py2.6.egg/-0755rm
pycparser-2.14-py2.6.egg-info/-0755rm
pygments/-0755rm
Pygments-1.1.1-py2.6.egg-info/-0755rm
pyparsing-2.0.3.dist-info/-0755rm
pyparsing-2.1.1.dist-info/-0755rm
python_cinderclient-1.4.0.dist-info/-0755rm
python_cinderclient-1.6.0.dist-info/-0755rm
python_dateutil-1.4.1-py2.6.egg-info/-0755rm
python_glanceclient-1.1.0.dist-info/-0755rm
python_glanceclient-2.0.0.dist-info/-0755rm
python_keystoneclient-1.7.1.dist-info/-0755rm
python_keystoneclient-2.3.1.dist-info/-0755rm
python_neutronclient-3.1.0.dist-info/-0755rm
python_novaclient-2.31.0.dist-info/-0755rm
python_novaclient-4.0.0.dist-info/-0755rm
python_openstackclient-1.7.1.dist-info/-0755rm
python_openstackclient-2.4.0.dist-info/-0755rm
python_swiftclient-2.6.0.dist-info/-0755rm
python_swiftclient-3.0.0.dist-info/-0755rm
pytz/-0755rm
pytz-2015.6.dist-info/-0755rm
pytz-2016.4.dist-info/-0755rm
pyzor-1.0.0-py2.6.egg/-0755rm
query_string-0.0.5-py2.6.egg-info/-0755rm
repoze/-0755rm
repoze.lru-0.6-py2.6.egg-info/-0755rm
request-0.0.5-py2.6.egg-info/-0755rm
requests/-0755rm
requests-2.7.0.dist-info/-0755rm
requests-2.9.1.dist-info/-0755rm
requestsexceptions/-0755rm
requestsexceptions-1.1.3.dist-info/-0755rm
rhn/-0755rm
rpmUtils/-0755rm
rsa/-0755rm
rsa-3.4.2-py2.6.egg-info/-0755rm
self-0.0.5-py2.6.egg-info/-0755rm
setools/-0755rm
setuptools/-0755rm
setuptools-20.10.1.dist-info/-0755rm
six-1.9.0.dist-info/-0755rm
six-1.10.0.dist-info/-0755rm
sos/-0755rm
stevedore/-0755rm
stevedore-1.8.0.dist-info/-0755rm
stevedore-1.12.0.dist-info/-0755rm
supervisor/-0755rm
swiftclient/-0755rm
tablib/-0755rm
tablib-0.10.0.dist-info/-0755rm
unicodecsv/-0755rm
unicodecsv-0.14.1-py2.6.egg-info/-0755rm
urlgrabber/-0755rm
urllib3/-0755rm
urllib3-1.10.2-py2.6.egg-info/-0755rm
urllib3-1.12.dist-info/-0755rm
urllib3-1.15.1.dist-info/-0755rm
warlock/-0755rm
warlock-1.1.0-py2.6.egg-info/-0755rm
warlock-1.2.0-py2.6.egg-info/-0755rm
yum/-0755rm
yumutils/-0755rm
appdirs.py223740755editdlrm
appdirs.pyc206650644editdlrm
argparse.py892140644editdlrm
argparse.pyc668150644editdlrm
argparse.pyo664910644editdlrm
chardet-2.0.1-py2.6.egg-info16050644editdlrm
clsudo.py129530644editdlrm
clsudo.pyc113920644editdlrm
clsudo.pyo113920644editdlrm
cmd2.py650690644editdlrm
cmd2.pyc650190644editdlrm
configobj-4.6.0-py2.6.egg-info3120644editdlrm
configobj.py864470644editdlrm
configobj.pyc664120644editdlrm
configobj.pyo664120644editdlrm
dbus_bindings.py330644editdlrm
dbus_bindings.pyc1850644editdlrm
dbus_bindings.pyo1850644editdlrm
decorator.py157750644editdlrm
decorator.pyc144850644editdlrm
dict.py22390644editdlrm
dnspython-1.11.1-py2.6.egg-info12800644editdlrm
easy-install.pth2760644editdlrm
easy_install.py1260644editdlrm
easy_install.pyc3170644editdlrm
easy_install.pyo3170644editdlrm
get.py3220644editdlrm
hwdata.py81420644editdlrm
hwdata.pyc62830644editdlrm
hwdata.pyo62830644editdlrm
iniparse-0.3.1-py2.6.egg-info10850644editdlrm
ipaddress.py796590644editdlrm
ipaddress.pyc759000644editdlrm
jsonpatch.py159460644editdlrm
jsonpatch.pyc174810644editdlrm
jsonpatch.pyo172770644editdlrm
jsonpointer-1.0-py2.6.egg-info3020644editdlrm
jsonpointer.py66100644editdlrm
jsonpointer.pyc63680644editdlrm
jsonpointer.pyo63680644editdlrm
libproxy.py43300644editdlrm
libproxy.pyc39900644editdlrm
libproxy.pyo39900644editdlrm
lprettytable.py238490755editdlrm
lprettytable.pyc196190644editdlrm
lprettytable.pyo194720644editdlrm
Markdown-2.0.1-py2.6.egg-info13400644editdlrm
monotonic.py53450644editdlrm
monotonic.pyc54790644editdlrm
ndg_httpsclient-0.4.0-py2.6-nspkg.pth2960644editdlrm
ordereddict-1.1-py2.6.egg-info1830644editdlrm
ordereddict-1.2-py2.6.egg-info1830644editdlrm
ordereddict.py42210644editdlrm
ordereddict.pyc44210644editdlrm
ordereddict.pyo44210644editdlrm
pciutils-2.3.5-py2.6.egg-info2420644editdlrm
pkg_resources.py881960644editdlrm
pkg_resources.pyc928750644editdlrm
pkg_resources.pyo928750644editdlrm
post.py2260644editdlrm
prettytable.py542040644editdlrm
prettytable.pyc522520644editdlrm
prettytable.pyo512660644editdlrm
public.py46350644editdlrm
pyOpenSSL-0.15.1-py2.6.egg2357360644editdlrm
pyOpenSSL-16.0.0-py2.6.egg943080644editdlrm
pyparsing.py1582560644editdlrm
pyparsing.pyc1578590644editdlrm
pytz-2010h-py2.6.egg-info225770644editdlrm
query_string.py8400644editdlrm
README1190644editdlrm
repoze.lru-0.6-py2.6-nspkg.pth3070644editdlrm
request.py2070644editdlrm
requests-2.6.0-py2.6.egg-info403570644editdlrm
rhnlib-2.5.22-py2.6.egg-info3390644editdlrm
secureio.py92220644editdlrm
secureio.pyc47210644editdlrm
secureio.pyo47210644editdlrm
self.py7280644editdlrm
setuptools-0.6c11-py2.6.egg-info1440644editdlrm
setuptools-18.3.2-py2.6.egg3590330755editdlrm
setuptools-20.9.0-py2.6.egg4728320644editdlrm
setuptools.pth340644editdlrm
site.py23620644editdlrm
site.pyc17710644editdlrm
site.pyo17710644editdlrm
six.py296640644editdlrm
six.pyc293300644editdlrm
six.pyo269110644editdlrm
supervisor-2.1-py2.6.egg-info7970644editdlrm
urlgrabber-3.9.1-py2.6.egg-info22850644editdlrm
validate.py467680644editdlrm
validate.pyc473840644editdlrm
validate.pyo473840644editdlrm
Edit: /usr/lib/python2.6/site-packages/ipaddress.pyc (75900B)
KVc@s(dZddklZddkZddkZdZefZyeefZWne j onXy e Z Wn-e j o!e Z e e jptnXdddjo dZn dZy eiZWnej od ZnXd Zeed o d Zn d ZddZdefdYZdZdZdefdYZdefdYZdZedZ dZ!dZ"dZ#dZ$dZ%dZ&d Z'd!Z(d"Z)d#Z*d$efd%YZ+d&e+fd'YZ,d(e+fd)YZ-d*efd+YZ.d,e.e,fd-YZ/d.e/fd/YZ0d0e.e-fd1YZ1d2efd3YZ2e2e/_3d4efd5YZ4d6e4e,fd7YZ5d8e5fd9YZ6d:e4e-fd;YZ7d<efd=YZ8e8e5_3dS(>uA fast, lightweight IPv4/IPv6 manipulation library in Python. This library is used to create/poke/manipulate IPv4 and IPv6 addresses and networks. i(tunicode_literalsNu1.0.14ticCs|S(N((tbyt((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_compat_bytes_to_byte_valsscCs/g}|D]}|tid|dq ~S(Ns!Bi(tstructtunpack(Rt_[1]tb((s-/usr/lib/python2.6/site-packages/ipaddress.pyR"scCsT|djptd}x3|D]+}t|tpt|d>|}q!W|S(Nubigii(tAssertionErrort isinstancet_compat_int_types(tbytvalst endianesstrestbv((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_compat_int_from_byte_vals'scCst|tpt|djpt|djo>|djp |djotidntid|S|djoI|djp |djotid ntid |d ?|d @StdS(Nubigiiii u(integer out of range for 'I' format codes!Iiiu)integer out of range for 'QQ' format codes!QQi@lIl (R R RRterrortpacktNotImplementedError(tintvaltlengthR ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_compat_to_bytes0s  u bit_lengthcCs |iS(N(t bit_length(ti((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_compat_bit_length?scCs1x*tiD]}||?djo|Sq WdS(Ni(t itertoolstcount(RR ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRBs iccsB|djpt|}x!||jo|V||7}qWdS(Ni(R(tstarttendtstepR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt _compat_rangeHs  t_TotalOrderingMixincBsDeZdZdZdZdZdZdZdZRS(cCs tdS(N(R(tselftother((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__eq__WscCs&|i|}|tjotS| S(N(R"tNotImplemented(R R!tequal((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__ne__Zs cCs tdS(N(R(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__lt__`scCs6|i|}|tjp| o|i|S|S(N(R&R#R"(R R!tless((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__le__cscCsN|i|}|tjotS|i|}|tjotS|p| S(N(R&R#R"(R R!R'R$((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__gt__is  cCs&|i|}|tjotS| S(N(R&R#(R R!R'((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__ge__rs (( t__name__t __module__t __slots__R"R%R&R(R)R*(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRPs     i itAddressValueErrorcBseZdZRS(u%A Value Error related to the address.(R+R,t__doc__(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR.}stNetmaskValueErrorcBseZdZRS(u%A Value Error related to the netmask.(R+R,R/(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR0sc Csyt|SWnttfj onXyt|SWnttfj onXt|totd|ntd|dS(uTake an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. Returns: An IPv4Address or IPv6Address object. Raises: ValueError: if the *address* passed isn't either a v4 or a v6 address ux%r does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?u0%r does not appear to be an IPv4 or IPv6 addressN(t IPv4AddressR.R0t IPv6AddressR tbytest ValueError(taddress((s-/usr/lib/python2.6/site-packages/ipaddress.pyt ip_addresssc Csnyt||SWnttfj onXyt||SWnttfj onXtd|dS(uTake an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP network. Either IPv4 or IPv6 networks may be supplied; integers less than 2**32 will be considered to be IPv4 by default. Returns: An IPv4Network or IPv6Network object. Raises: ValueError: if the string passed isn't either a v4 or a v6 address. Or if the network has host bits set. u0%r does not appear to be an IPv4 or IPv6 networkN(t IPv4NetworkR.R0t IPv6NetworkR4(R5tstrict((s-/usr/lib/python2.6/site-packages/ipaddress.pyt ip_networksc Cshyt|SWnttfj onXyt|SWnttfj onXtd|dS(ugTake an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. Returns: An IPv4Interface or IPv6Interface object. Raises: ValueError: if the string passed isn't either a v4 or a v6 address. Notes: The IPv?Interface classes describe an Address on a particular Network, so they're basically a combination of both the Address and Network classes. u2%r does not appear to be an IPv4 or IPv6 interfaceN(t IPv4InterfaceR.R0t IPv6InterfaceR4(R5((s-/usr/lib/python2.6/site-packages/ipaddress.pyt ip_interfacescCsCyt|ddSWn(titfj otdnXdS(u`Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representation of an IPv4 IP address. Returns: The integer address packed as 4 bytes in network (big-endian) order. Raises: ValueError: If the integer is negative or too large to be an IPv4 IP address. iubigu&Address negative or too large for IPv4N(RRRt OverflowErrorR4(R5((s-/usr/lib/python2.6/site-packages/ipaddress.pytv4_int_to_packedscCsCyt|ddSWn(titfj otdnXdS(uRepresent an address as 16 packed bytes in network (big-endian) order. Args: address: An integer representation of an IPv6 IP address. Returns: The integer address packed as 16 bytes in network (big-endian) order. iubigu&Address negative or too large for IPv6N(RRRR>R4(R5((s-/usr/lib/python2.6/site-packages/ipaddress.pytv6_int_to_packeds cCs@t|id}t|djotd|n|S(uAHelper to split the netmask and raise AddressValueError if neededu/iuOnly one '/' permitted in %r(t _compat_strtsplittlenR.(R5taddr((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_split_optional_netmasksccsnt|}t|}}x@|D]8}|i|idjo||fV|}n|}q#W||fVdS(uFind a sequence of sorted deduplicated IPv#Address. Args: addresses: a list of IPv#Address objects. Yields: A tuple containing the first and last IP addresses in the sequence. iN(titertnextt_ip(t addressestittfirsttlasttip((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_find_address_ranges    cCs.|djo|St|t||d@S(uCount the number of zero bits on the right hand side. Args: number: an integer. bits: maximum number of bits to count. Returns: The number of zero bits on the right hand side of the number. ii(tminR(tnumbertbits((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_count_righthand_zero_bits*s ccsZt|to t|tptdn|i|ijotd||fn||jotdn|idjo t}n'|idjo t}n td|i}|i}|i}x~||jopt t ||t ||dd}||||f}|V|d|>7}|d|i joPqqWdS( uSummarize a network range given the first and last IP addresses. Example: >>> list(summarize_address_range(IPv4Address('192.0.2.0'), ... IPv4Address('192.0.2.130'))) ... #doctest: +NORMALIZE_WHITESPACE [IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/31'), IPv4Network('192.0.2.130/32')] Args: first: the first IPv4Address or IPv6Address in the range. last: the last IPv4Address or IPv6Address in the range. Returns: An iterator of the summarized IPv(4|6) network objects. Raise: TypeError: If the first and last objects are not IP addresses. If the first and last objects are not the same version. ValueError: If the last object is not greater than the first. If the version of the first address is not 4 or 6. u1first and last must be IP addresses, not networksu%%s and %s are not of the same versionu*last IP address must be greater than firstiiuunknown IP versioniN( R t _BaseAddresst TypeErrortversionR4R7R8t_max_prefixlenRHRORRRt _ALL_ONES(RKRLRMtip_bitst first_inttlast_inttnbitstnet((s-/usr/lib/python2.6/site-packages/ipaddress.pytsummarize_address_range:s2        ccst|}h}xs|ok|i}|i}|i|}|djo||| [IPv4Network('192.0.2.0/24')] This shouldn't be called directly; it is called via collapse_addresses([]). Args: addresses: A list of IPv4Network's or IPv6Network's Returns: A list of IPv4Network's or IPv6Network's depending on what we were passed. N( tlisttpoptsupernettgettNonetappendtsortedtvaluestbroadcast_address(RItto_mergetsubnetsR\R`texistingRL((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_collapse_addresses_internalqs(       cCsg}g}g}xA|D]9}t|toM|o5|di|ijotd||dfn|i|q|i|ijoz|o5|di|ijotd||dfny|i|iWqRtj o|i|i qRXq|o5|di|ijotd||dfn|i|qWt t |}|o7x4t |D]"\}}|i t||q|Wnt||S(uCollapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), IPv4Network('192.0.2.128/25')]) -> [IPv4Network('192.0.2.0/24')] Args: addresses: An iterator of IPv4Network or IPv6Network objects. Returns: An iterator of the collapsed IPv(4|6)Network objects. Raises: TypeError: If passed a list of mixed version objects. iu%%s and %s are not of the same version(R RSt_versionRTRct _prefixlenRVRMtAttributeErrortnetwork_addressRdtsetRNtextendR]Rj(RItaddrstipstnetsRMRKRL((s-/usr/lib/python2.6/site-packages/ipaddress.pytcollapse_addressess8 cCs:t|to |iSt|to |iStS(u2Return a key suitable for sorting between networks and addresses. Address and Network objects are not sortable by default; they're fundamentally different so the expression IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24') doesn't make any sense. There are some times however, where you may wish to have ipaddress sort these for you anyway. If you need to do this, you can use this function as the key= argument to sorted(). Args: obj: either a Network or Address object. Returns: appropriate key. (R t _BaseNetworkt_get_networks_keyRSt_get_address_keyR#(tobj((s-/usr/lib/python2.6/site-packages/ipaddress.pytget_mixed_type_keys   t_IPAddressBasecBseZdZd ZedZedZedZedZdZ dZ e dZ e dZ e d Ze d Ze d Zd ZRS(uThe mother class.cCs |iS(u:Return the longhand version of the IP address as a string.(t_explode_shorthand_ip_string(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pytexplodedscCs t|S(u;Return the shorthand version of the IP address as a string.(RA(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt compressedscCs |iS(uIThe name of the reverse DNS pointer for the IP address, e.g.: >>> ipaddress.ip_address("127.0.0.1").reverse_pointer '1.0.0.127.in-addr.arpa' >>> ipaddress.ip_address("2001:db8::1").reverse_pointer '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa' (t_reverse_pointer(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pytreverse_pointers cCs#dt|f}t|dS(Nu%200s has no version specified(ttypeR(R tmsg((s-/usr/lib/python2.6/site-packages/ipaddress.pyRU scCsm|djo#d}t|||ifn||ijo)d}t|||i|ifndS(Niu-%d (< 0) is not permitted as an IPv%d addressu2%d (>= 2**%d) is not permitted as an IPv%d address(R.RkRWRV(R R5R((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_check_int_addresss cCsFt|}||jo)d}t|||||ifndS(Nu~%r (len %d != %d) is not permitted as an IPv%d address. Did you pass in a bytes (str in Python 2) instead of a unicode object?(RCR.Rk(R R5t expected_lent address_lenR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_check_packed_addresss    cCs|i|i|?AS(uTurn the prefix length into a bitwise netmask Args: prefixlen: An integer, the prefix length. Returns: An integer. (RW(tclst prefixlen((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_ip_int_from_prefix%s c Cst||i}|i|}||?}d|>d}||jo9|id}t||d}d}t||n|S(uReturn prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bitwise format Returns: An integer, the prefix length. Raises: ValueError: If the input intermingles zeroes & ones iiubigu&Netmask pattern %r mixes zeroes & ones(RRRVRR4( Rtip_intttrailing_zeroesRt leading_onestall_onestbyteslentdetailsR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_prefix_from_ip_int2s      cCsd|}t|dS(Nu%r is not a valid netmask(R0(Rt netmask_strR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_report_invalid_netmaskKs cCstii|p|i|nyt|}Wn tj o|i|nXd|jo |ijnp|i|n|S(u Return prefix length from a numeric string Args: prefixlen_str: The string to be converted Returns: An integer, the prefix length. Raises: NetmaskValueError: If the input is not a valid netmask i(t_BaseV4t_DECIMAL_DIGITSt issupersetRtintR4RV(Rt prefixlen_strR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_prefix_from_prefix_stringPs!c Csy|i|}Wn tj o|i|nXy|i|SWntj onX||iN}y|i|SWn tj o|i|nXdS(uTurn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converted Returns: An integer, the prefix length. Raises: NetmaskValueError: If the input is not a valid netmask/hostmask N(t_ip_int_from_stringR.RRR4RW(Rtip_strR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt_prefix_from_ip_stringis cCs|it|ffS(N(t __class__RA(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt __reduce__s((R+R,R/R-tpropertyR|R}RRURRt classmethodRRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRzs   "RScBsneZdZd ZdZdZdZdZdZdZ dZ dZ d Z d Z RS( uA generic IP object. This IP class contains the version independent methods which are used by single IP addresses. cCs|iS(N(RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__int__scCsBy'|i|ijo|i|ijSWntj otSXdS(N(RHRkRmR#(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyR"s cCst|tptSt|tptd||fn|i|ijotd||fn|i|ijo|i|ijStS(Nu"%s and %s are not of the same typeu%%s and %s are not of the same version(R RzR#RSRTRkRHtFalse(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyR&scCs,t|tptS|it||S(N(R R R#RR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__add__scCs,t|tptS|it||S(N(R R R#RR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__sub__scCsd|iit|fS(Nu%s(%r)(RR+RA(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__repr__scCst|i|iS(N(RAt_string_from_ip_intRH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__str__scCsttt|iS(N(thashthexRRH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__hash__scCs |i|fS(N(Rk(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRwscCs|i|iffS(N(RRH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs((R+R,R/R-RR"R&RRRRRRwR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRSs         RucBseZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z ed Zed ZedZedZedZedZedZedZdZdZdZdd#dZdd#dZedZdZdZedZ edZ!edZ"ed Z#ed!Z$ed"Z%RS($u~A generic IP network object. This IP class contains the version independent methods which are used by networks. cCs h|_dS(N(t_cache(R R5((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__init__scCsd|iit|fS(Nu%s(%r)(RR+RA(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCsd|i|ifS(Nu%s/%d(RnR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRsccsNt|i}t|i}x)t|d|D]}|i|Vq2WdS(uGenerate Iterator over usable hosts in a network. This is like __iter__ except it doesn't return the network or broadcast addresses. iN(RRnRfRt_address_class(R tnetworkt broadcasttx((s-/usr/lib/python2.6/site-packages/ipaddress.pythostss ccsNt|i}t|i}x)t||dD]}|i|Vq2WdS(Ni(RRnRfRR(R RRR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt__iter__s cCst|i}t|i}|djo-|||jo tn|i||S|d7}|||jo tn|i||SdS(Nii(RRnRft IndexErrorR(R tnRR((s-/usr/lib/python2.6/site-packages/ipaddress.pyt __getitem__s    cCst|tptSt|tptd||fn|i|ijotd||fn|i|ijo|i|ijS|i|ijo|i|ijStS(Nu"%s and %s are not of the same typeu%%s and %s are not of the same version( R RzR#RuRTRkRntnetmaskR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyR&scCsayF|i|ijo/|i|ijot|it|ijSWntj otSXdS(N(RkRnRRRmR#(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyR" s  cCs tt|it|iAS(N(RRRnR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCse|i|ijotSt|totSt|it|ijot|ijSSdS(N(RkRR RuRRnRHRf(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyt __contains__s !cCs=|i|jp-|i|jp|i|jp |i|jS(u*Tell if self is partly contained in other.(RnRf(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pytoverlaps#scCsY|iid}|djo6|it|it|iB}||id other eg: IPv4Network('192.0.2.128/25') > IPv4Network('192.0.2.0/25') IPv6Network('2001:db8::2000/124') > IPv6Network('2001:db8::1000/124') Raises: TypeError if the IP versions are different. u"%s and %s are not of the same typeiii(RkRTRnR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pytcompare_networkss!cCs|i|i|ifS(uNetwork-only key function. Returns an object that identifies this address' network and netmask. This function is a suitable "key" argument for sorted() and list.sort(). (RkRnR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRvsic cs<|i|ijo |VdS|dj oN||ijotdn|djotdn||i}n|djotdn|i|}||ijotd||fnt|i}t|i}t|id|?}x4t|||D] }|i ||f}|VqWdS(uThe subnets which join to make the current subnet. In the case that self contains only one IP (self._prefixlen == 32 for IPv4 or self._prefixlen == 128 for IPv6), yield an iterator with just ourself. Args: prefixlen_diff: An integer, the amount the prefix length should be increased by. This should not be set if new_prefix is also set. new_prefix: The desired new prefix length. This must be a larger number (smaller prefix) than the existing prefix. This should not be set if prefixlen_diff is also set. Returns: An iterator of IPv(4|6) objects. Raises: ValueError: The prefixlen_diff is too small or too large. OR prefixlen_diff and new_prefix are both set or new_prefix is a smaller number than the current prefix (smaller number means a larger network) Nunew prefix must be longeriu(cannot set prefixlen_diff and new_prefixiuprefix length diff must be > 0u0prefix length diff %d is invalid for netblock %s( RlRVRbR4RRnRfRRR( R tprefixlen_difft new_prefixt new_prefixlenRRRtnew_addrtcurrent((s-/usr/lib/python2.6/site-packages/ipaddress.pyRhs.    cCs|idjo|S|dj oN||ijotdn|djotdn|i|}n|i|}|djotd|i|fn|it|it|i|>@|fS(uThe supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefix length of the network should be decreased by. For example, given a /24 network and a prefixlen_diff of 3, a supernet with a /21 netmask is returned. Returns: An IPv4 network object. Raises: ValueError: If self.prefixlen - prefixlen_diff < 0. I.e., you have a negative prefix length. OR If prefixlen_diff and new_prefix are both set or new_prefix is a larger number than the current prefix (larger number means a smaller network) iunew prefix must be shorteriu(cannot set prefixlen_diff and new_prefixu;current prefixlen is %d, cannot have a prefixlen_diff of %dN(RlRbR4RRRRnR(R RRR((s-/usr/lib/python2.6/site-packages/ipaddress.pyR`s     cCs|iio |iiS(uTest if the address is reserved for multicast use. Returns: A boolean, True if the address is a multicast address. See RFC 2373 2.7 for details. (Rnt is_multicastRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR;s cCsv|i|ijotSt|do4t|do$|i|ijo|i|ijStdt|dS(Nunetwork_addressubroadcast_addressu9Unable to test subnet containment with element of type %s(RkRthasattrRnRfRTR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyRGscCsv|i|ijotSt|do4t|do$|i|ijo|i|ijStdt|dS(Nunetwork_addressubroadcast_addressu9Unable to test subnet containment with element of type %s(RkRRRnRfRTR(R R!((s-/usr/lib/python2.6/site-packages/ipaddress.pyt supernet_ofUscCs|iio |iiS(uTest if the address is otherwise IETF reserved. Returns: A boolean, True if the address is within one of the reserved IPv6 Network ranges. (Rnt is_reservedRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRcs cCs|iio |iiS(uTest if the address is reserved for link-local. Returns: A boolean, True if the address is reserved per RFC 4291. (Rnt is_link_localRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRos cCs|iio |iiS(uTest if this address is allocated for private networks. Returns: A boolean, True if the address is reserved per iana-ipv4-special-registry or iana-ipv6-special-registry. (Rnt is_privateRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRzs cCs|i S(uTest if this address is allocated for public networks. Returns: A boolean, True if the address is not reserved per iana-ipv4-special-registry or iana-ipv6-special-registry. (R(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt is_globals cCs|iio |iiS(uTest if the address is unspecified. Returns: A boolean, True if this is the unspecified address as defined in RFC 2373 2.5.2. (Rntis_unspecifiedRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs|iio |iiS(uTest if the address is a loopback address. Returns: A boolean, True if the address is a loopback address as defined in RFC 2373 2.5.3. (Rnt is_loopbackRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs N(&R+R,R/RRRRRRR&R"RRRRRfRRRRRRRRRRvRbRhR`RRRRRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRusD          K 0 5)       Rc BseZdZdZdZdedZedZeddddd d d d d g Z eZ hZ dZ e dZe dZe dZe dZdZdZedZedZRS(uyBase IPv4 object. The following methods are used by IPv4 objects in both single IP addresses and networks. iiiu 0123456789iiiiiiiiicCs t|S(N(RA(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR{scCs||ijo~t|to |}n9y|i|}Wn"tj o|i|}nXt|i|}||f|i| 255) not permitted(R4RRRCR(Rt octet_strRt octet_int((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs#didt|ddDS(uTurns a 32-bit integer into dotted decimal notation. Args: ip_int: An integer, the IP address. Returns: The IP address as a string in dotted decimal notation. u.cssFx?|]8}tt|totid|dn|VqWdS(s!BiN(RAR R3RR(t.0R((s-/usr/lib/python2.6/site-packages/ipaddress.pys 's iubig(tjoinR(RR((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs|id}yBg}tt|D]!}||ijo ||q&q&~}Wntj otSXt|t|jotS|d|djotStS(uTest if the IP string is a hostmask (rather than a netmask). Args: ip_str: A string, the potential hostmask. Returns: A boolean, True if the IP string is a hostmask. u.ii(RBRRt_valid_mask_octetsR4RRCtTrue(R RRQRRtparts((s-/usr/lib/python2.6/site-packages/ipaddress.pyt _is_hostmask,s BcCs3t|idddd}di|dS(uReturn the reverse DNS pointer name for the IPv4 address. This implements the method described in RFC1035 3.5. u.Niu .in-addr.arpa(RARBR(R treverse_octets((s-/usr/lib/python2.6/site-packages/ipaddress.pyR~As"cCs|iS(N(RV(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt max_prefixlenJscCs|iS(N(Rk(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRUNs((R+R,R/R-Rkt IPV4LENGTHRWt frozensetRRRVRR{RRRRRRR~RRRU(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs" ' %  R1cBseZdZd ZdZedZedZedZedZ edZ ed Z ed Z RS( u/Represent and manipulate single IPv4 Addresses.u_ipu __weakref__cCst|to|i|||_dSt|to3|i|dt|}t|d|_dSt|}d|jot d|n|i ||_dS(u Args: address: A string or integer representing the IP Additionally, an integer can be passed, so IPv4Address('192.0.2.1') == IPv4Address(3221225985). or, more generally IPv4Address(int(IPv4Address('192.0.2.1'))) == IPv4Address('192.0.2.1') Raises: AddressValueError: If ipaddress isn't a valid IPv4 address. Niubigu/uUnexpected '/' in %r( R R RRHR3RRRRAR.R(R R5tbvstaddr_str((s-/usr/lib/python2.6/site-packages/ipaddress.pyRYs     cCs t|iS(u*The binary representation of this address.(R?RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pytpacked}scCs||iijS(uTest if the address is otherwise IETF reserved. Returns: A boolean, True if the address is within the reserved IPv4 Network range. (t _constantst_reserved_network(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cs tfdiiDS(uTest if this address is allocated for private networks. Returns: A boolean, True if the address is reserved per iana-ipv4-special-registry. c3sx|]}|jVqWdS(N((RR\(R (s-/usr/lib/python2.6/site-packages/ipaddress.pys s (tanyRt_private_networks(R ((R s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs||iijS(uTest if the address is reserved for multicast use. Returns: A boolean, True if the address is multicast. See RFC 3171 for details. (Rt_multicast_network(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs||iijS(uTest if the address is unspecified. Returns: A boolean, True if this is the unspecified address as defined in RFC 5735 3. (Rt_unspecified_address(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs||iijS(uTest if the address is a loopback address. Returns: A boolean, True if the address is a loopback per RFC 3330. (Rt_loopback_network(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs||iijS(uTest if the address is reserved for link-local. Returns: A boolean, True if the address is link-local per RFC 3927. (Rt_linklocal_network(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs(u_ipu __weakref__( R+R,R/R-RRRRRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR1Ss $     R;cBszeZdZdZdZdZdZeiZe dZ e dZ e dZ e dZ RS( cCsAt|ttfo3ti||t|i|_|i|_ dSt|t oti||dt |djot |d|_ n |i|_ t|dt |_|ii|_|ii|_dSt|}ti||dt|dt |_|ii |_ |ii|_|ii|_dS(NiiR9(R R3R R1RR7RHRRVRlttupleRCRRRRRE(R R5RD((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs(   cCs d|i|i|iifS(Nu%s/%d(RRHRR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs[ti||}| p |tjo|Sy|i|ijSWntj otSXdS(N(R1R"R#RRmR(R R!t address_equal((s-/usr/lib/python2.6/site-packages/ipaddress.pyR"scCsSti||}|tjotSy|i|ijSWntj otSXdS(N(R1R&R#RRmR(R R!t address_less((s-/usr/lib/python2.6/site-packages/ipaddress.pyR&s cCs|i|iAt|iiAS(N(RHRlRRRn(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs t|iS(N(R1RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRMscCsd|i|i|ifS(Nu%s/%s(RRHRl(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCsd|i|i|ifS(Nu%s/%s(RRHR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR scCsd|i|i|ifS(Nu%s/%s(RRHR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs(R+R,RRR"R&RRzRRRMRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR;s    R7cBs/eZdZeZedZedZRS(ueThis class represents and manipulates 32-bit IPv4 network + addresses.. Attributes: [examples for IPv4Network('192.0.2.0/27')] .network_address: IPv4Address('192.0.2.0') .hostmask: IPv4Address('0.0.0.31') .broadcast_address: IPv4Address('192.0.2.32') .netmask: IPv4Address('255.255.255.224') .prefixlen: 27 cCs1ti||t|ttfo2t||_|i|i\|_ |_ dSt|t ot |djo|d}n |i}t|d|_|i|\|_ |_ t |i}|t |i @|jo;|otd|q$t|t |i @|_ndSt|}t|i|d|_t |djo|d}n |i}|i|\|_ |_ |oDtt |it |i @|ijotd|qntt |it |i @|_|i |idjo|i|_ndS(uInstantiate a new IPv4 network object. Args: address: A string or integer representing the IP [& network]. '192.0.2.0/24' '192.0.2.0/255.255.255.0' '192.0.0.2/0.0.0.255' are all functionally the same in IPv4. Similarly, '192.0.2.1' '192.0.2.1/255.255.255.255' '192.0.2.1/32' are also functionally equivalent. That is to say, failing to provide a subnetmask will create an object with a mask of /32. If the mask (portion after the / in the argument) is given in dotted quad form, it is treated as a netmask if it starts with a non-zero field (e.g. /255.0.0.0 == /8) and as a hostmask if it starts with a zero field (e.g. 0.255.255.255 == /8), with the single exception of an all-zero mask which is treated as a netmask == /0. If no mask is given, a default of /32 is used. Additionally, an integer can be passed, so IPv4Network('192.0.2.1') == IPv4Network(3221225985) or, more generally IPv4Interface(int(IPv4Interface('192.0.2.1'))) == IPv4Interface('192.0.2.1') Raises: AddressValueError: If ipaddress isn't a valid IPv4 address. NetmaskValueError: If the netmask isn't valid for an IPv4 address. ValueError: If strict is True and a network address is not supplied. Niiu%s has host bits seti(RuRR R R3R1RnRRVRRlRRCRR4RERRR(R R5R9RRRD((s-/usr/lib/python2.6/site-packages/ipaddress.pyR$sB%    cCs5|itdjo|itdj o|i S(uTest if this address is allocated for public networks. Returns: A boolean, True if the address is not reserved per iana-ipv4-special-registry. u 100.64.0.0/10(RnR7RfR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRys ( R+R,R/R1RRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR7s  Ut_IPv4ConstantscBseZedZedZedZededededededededed ed ed ed ed edgZed ZedZ RS(u169.254.0.0/16u 127.0.0.0/8u 224.0.0.0/4u 0.0.0.0/8u 10.0.0.0/8u 172.16.0.0/12u 192.0.0.0/29u192.0.0.170/31u 192.0.2.0/24u192.168.0.0/16u 198.18.0.0/15u198.51.100.0/24u203.0.113.0/24u 240.0.0.0/4u255.255.255.255/32u0.0.0.0( R+R,R7RRRRRR1R(((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs&                 t_BaseV6cBseZdZdZdZdedZdZedZ eZ hZ e dZ e dZe dZe d Ze dd Zd Zd Zed ZedZRS(uyBase IPv6 object. The following methods are used by IPv6 objects in both single IP addresses and networks. iiiiu0123456789ABCDEFabcdefcCsp||ijoUt|to |}n|i|}t|i|}||f|i| s (RRt_reserved_networks(R ((R s-/usr/lib/python2.6/site-packages/ipaddress.pyRs cCs||iijS(uTest if the address is reserved for link-local. Returns: A boolean, True if the address is reserved per RFC 4291. (RR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR scCs||iijS(u`Test if the address is reserved for site-local. Note that the site-local address space has been deprecated by RFC 3879. Use is_private to test if this address is in the space of unique local addresses as defined by RFC 4193. Returns: A boolean, True if the address is reserved per RFC 3513 2.5.6. (Rt_sitelocal_network(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt is_site_locals cs tfdiiDS(uTest if this address is allocated for private networks. Returns: A boolean, True if the address is reserved per iana-ipv6-special-registry. c3sx|]}|jVqWdS(N((RR\(R (s-/usr/lib/python2.6/site-packages/ipaddress.pys ,s (RRR(R ((R s-/usr/lib/python2.6/site-packages/ipaddress.pyR#s cCs|i S(uTest if this address is allocated for public networks. Returns: A boolean, true if the address is not reserved per iana-ipv6-special-registry. (R(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR.s cCs |idjS(uTest if the address is unspecified. Returns: A boolean, True if this is the unspecified address as defined in RFC 2373 2.5.2. i(RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR9s cCs |idjS(uTest if the address is a loopback address. Returns: A boolean, True if the address is a loopback address as defined in RFC 2373 2.5.3. i(RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRDs cCs*|id?djodSt|id@S(uReturn the IPv4 mapped address. Returns: If the IPv6 address is a v4 mapped address, return the IPv4 mapped address. Return None otherwise. i iIN(RHRbR1(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt ipv4_mappedOs cCsB|id?djodSt|id?d@t|id@fS(uTuple of embedded teredo IPs. Returns: Tuple of the (server, client) IPs or None if the address doesn't appear to be a teredo address (doesn't start with 2001::/32) i`i i@IN(RHRbR1(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pytteredo\s cCs.|id?djodSt|id?d@S(uReturn the IPv4 6to4 embedded address. Returns: The IPv4 6to4-embedded address if present or None if the address doesn't appear to contain a 6to4 embedded address. ipi iPIN(RHRbR1(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyt sixtofourks (u_ipu __weakref__(R+R,R/R-RRRRRRRRRRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR2s %        R<cBseZdZdZdZdZdZeiZe dZ e dZ e dZ e dZ e d Ze d ZRS( cCsAt|ttfo3ti||t|i|_|i|_ dSt|t oti||dt |djot |d|_ n |i|_ t|dt |_|ii|_|ii|_dSt|}ti||dt|dt |_|ii|_|ii |_ |ii|_dS(NiiR9(R R3R R2RR8RHRRVRlRRCRRRRRE(R R5RD((s-/usr/lib/python2.6/site-packages/ipaddress.pyR{s(   cCs d|i|i|iifS(Nu%s/%d(RRHRR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs[ti||}| p |tjo|Sy|i|ijSWntj otSXdS(N(R2R"R#RRmR(R R!R((s-/usr/lib/python2.6/site-packages/ipaddress.pyR"scCsSti||}|tjotSy|i|ijSWntj otSXdS(N(R2R&R#RRmR(R R!R((s-/usr/lib/python2.6/site-packages/ipaddress.pyR&s cCs|i|iAt|iiAS(N(RHRlRRRn(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs t|iS(N(R2RH(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRMscCsd|i|i|ifS(Nu%s/%s(RRHRl(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCsd|i|i|ifS(Nu%s/%s(RRHR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCsd|i|i|ifS(Nu%s/%s(RRHR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs|idjo |iiS(Ni(RHRR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRscCs|idjo |iiS(Ni(RHRR(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyRs(R+R,RRR"R&RRzRRRMRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR<ys    R8cBs8eZdZeZedZdZedZ RS(uvThis class represents and manipulates 128-bit IPv6 networks. Attributes: [examples for IPv6('2001:db8::1000/124')] .network_address: IPv6Address('2001:db8::1000') .hostmask: IPv6Address('::f') .broadcast_address: IPv6Address('2001:db8::100f') .netmask: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0') .prefixlen: 124 cCs1ti||t|ttfo2t||_|i|i\|_ |_ dSt|t ot |djo|d}n |i}|i|\|_ |_ t|d|_t |i}|t |i @|jo;|otd|q$t|t |i @|_ndSt|}t|i|d|_t |djo|d}n |i}|i|\|_ |_ |oDtt |it |i @|ijotd|qntt |it |i @|_|i |idjo|i|_ndS(uInstantiate a new IPv6 Network object. Args: address: A string or integer representing the IPv6 network or the IP and prefix/netmask. '2001:db8::/128' '2001:db8:0000:0000:0000:0000:0000:0000/128' '2001:db8::' are all functionally the same in IPv6. That is to say, failing to provide a subnetmask will create an object with a mask of /128. Additionally, an integer can be passed, so IPv6Network('2001:db8::') == IPv6Network(42540766411282592856903984951653826560) or, more generally IPv6Network(int(IPv6Network('2001:db8::'))) == IPv6Network('2001:db8::') strict: A boolean. If true, ensure that we have been passed A true network address, eg, 2001:db8::1000/124 and not an IP address on a network, eg, 2001:db8::1/124. Raises: AddressValueError: If address isn't a valid IPv6 address. NetmaskValueError: If the netmask isn't valid for an IPv6 address. ValueError: If strict was True and a network address was not supplied. Niiu%s has host bits seti(RuRR R3R R2RnRRVRRlRRCRR4RERRR(R R5R9RRRD((s-/usr/lib/python2.6/site-packages/ipaddress.pyRsB     ccsRt|i}t|i}x-t|d|dD]}|i|Vq6WdS(uGenerate Iterator over usable hosts in a network. This is like __iter__ except it doesn't return the Subnet-Router anycast address. iN(RRnRfRR(R RRR((s-/usr/lib/python2.6/site-packages/ipaddress.pyR. s cCs|iio |iiS(u`Test if the address is reserved for site-local. Note that the site-local address space has been deprecated by RFC 3879. Use is_private to test if this address is in the space of unique local addresses as defined by RFC 4193. Returns: A boolean, True if the address is reserved per RFC 3513 2.5.6. (RnRRf(R ((s-/usr/lib/python2.6/site-packages/ipaddress.pyR: s ( R+R,R/R2RRRRRR(((s-/usr/lib/python2.6/site-packages/ipaddress.pyR8s   O t_IPv6ConstantscBseZedZedZedededededededed ed edg Zed ed ed ededededededededededededgZedZRS(u fe80::/10uff00::/8u::1/128u::/128u ::ffff:0:0/96u100::/64u 2001::/23u 2001:2::/48u 2001:db8::/32u 2001:10::/28ufc00::/7u::/8u100::/8u200::/7u400::/6u800::/5u1000::/4u4000::/3u6000::/3u8000::/3uA000::/3uC000::/3uE000::/4uF000::/5uF800::/6uFE00::/9u fec0::/10(R+R,R8RRRR R (((s-/usr/lib/python2.6/site-packages/ipaddress.pyRJ s*           (9R/t __future__RRRt __version__RR tlongt NameErrortunicodeRAtstrR3RRt from_bytesRRmRRRRtobjectRRR R4R.R0R6RR:R=R?R@RERNRRR]RjRtRyRzRSRuRR1R;R7RRRR2R<R8R(((s-/usr/lib/python2.6/site-packages/ipaddress.pyt sx           ) $  #      7 1 6 =pRr V{!