def filter_cidr(self, queryset, value):
        if value:
            network_address, _, prefix_length = value.partition('/')
        else:
            return queryset

        return queryset.filter(
            network_address=network_address,
            prefix_length=prefix_length
        )
Converts ``cidr`` to network/prefix filter.
dataset/ETHPy150Open dropbox/nsot/nsot/api/filters.py/NetworkFilter.filter_cidr