Segment: remove deprecation warning for converters
Remove warning: neutron.api.v2.attributes.convert_to_int()' has moved to 'neutron_lib.api.converters.convert_to_int()' in version 'mitaka' and will be removed in version 'ocata': moved to neutron_lib Change-Id: I0f6622b685a6b9ab030a13113badbefb729be013 Closes-bug: #1582541
This commit is contained in:
parent
f3eb620ebf
commit
f0d99d5499
|
@ -15,6 +15,7 @@
|
|||
import abc
|
||||
import six
|
||||
|
||||
from neutron_lib.api import converters
|
||||
from neutron_lib import constants
|
||||
|
||||
from neutron.api import extensions
|
||||
|
@ -62,7 +63,7 @@ RESOURCE_ATTRIBUTE_MAP = {
|
|||
SEGMENTATION_ID: {'allow_post': True,
|
||||
'allow_put': False,
|
||||
'default': constants.ATTR_NOT_SPECIFIED,
|
||||
'convert_to': attributes.convert_to_int,
|
||||
'convert_to': converters.convert_to_int,
|
||||
'is_visible': True},
|
||||
},
|
||||
attributes.SUBNETS: {
|
||||
|
|
Loading…
Reference in New Issue