def as_netaddr(self):
    'Convenient function to get cidr as a netaddr object.'
    return netaddr.IPNetwork(self['cidr'])
Convenient function to get cidr as a netaddr object.
def as_netaddr(self):
    
    return netaddr.IPNetwork(self['cidr'])