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:
Gary Kotton 2016-05-16 23:36:18 -07:00
parent f3eb620ebf
commit f0d99d5499
1 changed files with 2 additions and 1 deletions

View File

@ -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: {