Files
oslo.utils/oslo_utils/netutils.py
Wen Zhi Yu f082a5b859 Add method is_valid_cidr to netutils
This method exists in Nova[1], Magnum[2] and neutron_client[3],
and can be leveraged by other projects as well.

[1]https://github.com/openstack/nova/blob/13.0.0.0b2/nova/utils.py#L657
[2]https://github.com/openstack/magnum/blob/1.1.0/magnum/common/utils.py#L256
[3]https://github.com/openstack/python-neutronclient/blob/4.0.0/neutronclient/common/utils.py#L187

Change-Id: Ia9c8c0123e6d1e9f8bd2b662871b4d01f14bd06d
2016-04-08 06:39:34 +00:00

13 KiB