A CIDR netmask.
This class represents a CIDR netmask.
Methods
|
|
__init__
get
get_bin
get_dec
get_dot
set
|
|
__init__
|
__init__ ( self, nm='' )
|
|
get
|
get ( self )
Return the netmask.
|
|
get_bin
|
get_bin ( self )
Return the binary notation of the netmask.
|
|
get_dec
|
get_dec ( self )
Return the decimal notation of the netmask.
|
|
get_dot
|
get_dot ( self )
Return the dotted decimal notation of the netmask.
|
|
set
|
set ( self, nm )
Set the netmask.
|
|