Merge "Deprecate method get_ipv6_addr_by_EUI64"

This commit is contained in:
Jenkins 2016-09-21 22:44:41 +00:00 committed by Gerrit Code Review
commit d1b9789549
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
deprecations:
- Oslo.utils provides same method get_ipv6_addr_by_EUI64,
so deprecate it in Newton and remove it in Ocata.

View File

@ -19,6 +19,7 @@ import random
import string
import uuid
from debtcollector import removals
from oslo_utils import netutils
import six.moves
@ -175,6 +176,10 @@ def random_bytes(size=1024):
for i in range(size)])
@removals.remove(
message="use get_ipv6_addr_by_EUI64 from oslo_utils.netutils",
version="Newton",
removal_version="Ocata")
def get_ipv6_addr_by_EUI64(cidr, mac):
"""Generate a IPv6 addr by EUI-64 with CIDR and MAC

View File

@ -16,6 +16,7 @@ deps =
setenv =
VIRTUAL_ENV={envdir}
OS_TEST_PATH=./tempest/tests
PYTHONWARNINGS=default::DeprecationWarning
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
usedevelop = True
install_command = pip install -U {opts} {packages}