Home | Trees | Indices | Help |
|
---|
|
object --+ | AddrRange --+ | CIDR
A block of contiguous IPv4 or IPv6 network addresses defined by a base network address and a bitmask prefix or subnet mask address indicating the size/extent of the subnet.
This class does not accept any non zero bits to be set right of the bitmask (unlike the IP class which is less strict). Doing so raises an AddrFormatError exception.
Examples of supported formats :-
<address>/<mask_length>
:
192.168.0.0/16
192.168.0.0/255.255.0.0 == 192.168.0.0/16
10 == 10.0.0.0/8 10.0 == 10.0.0.0/8 10/8 == 10.0.0.0/8 128 == 128.0.0.0/16 128.0 == 128.0.0.0/16 128/16 == 128.0.0.0/16 192 == 10.0.0.0/24 192.168.0 == 192.168.0.0/24 192.168/16 == 192.168.0.0/16
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
Constructor. |
|
|
|
str(x)
|
repr(x)
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 7 22:21:37 2008 | http://epydoc.sourceforge.net |