Home | Trees | Indices | Help |
|
---|
|
object --+ | IPRange --+ | Wildcard
Represents blocks of IPv4 addresses using a wildcard or glob style syntax.
Individual octets can be represented using the following shortcuts :
*
- the asterisk octet (represents values 0 through 255)
'x-y'
- the hyphenated octet (represents values x
through y)
A few basic rules also apply :
Example wildcards :
'192.168.0.1' # a single address '192.168.0.0-31' # 32 addresses '192.168.0.*' # 256 addresses '192.168.0-1.*' # 512 addresses '192.168-169.*.*' # 131,072 addresses '*.*.*.*' # the whole IPv4 address space
Wildcard ranges are not directly equivalent to CIDR blocks as they can represent address ranges that do not fall on strict bit mask boundaries. They are very suitable in configuration files being more obvious and readable than their CIDR equivalents, especially for admins and users without much networking knowledge or experience.
All CIDR blocks can always be represented as wildcard ranges but the reverse is not true. Wildcards are almost but not quite as flexible as IPRange objects.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Static Methods | |||
|
Properties | |
Inherited from |
Method Details |
A static method that validates wildcard address ranges.
|
Constructor. |
str(x)
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jan 21 23:41:06 2009 | http://epydoc.sourceforge.net |