Package netaddr :: Module address :: Class PrefixLenDescriptor
[frames] | no frames]

Class PrefixLenDescriptor

source code

object --+
         |
        PrefixLenDescriptor

A descriptor that checks prefixlen property assignments for validity based on address type. Also accepts subnet masks which can easily be converted to the equivalent prefixlen integer.

Instance Methods
 
__set__(self, instance, value) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__