Use DEVICE_OWNER_COMPUTE_PREFIX from neutron-lib
Remove the warnings: neutron/tests/unit/db/test_ipam_pluggable_backend.py:79: DeprecationWarning: DEVICE_OWNER_COMPUTE_PREFIX in version 'mitaka' and will be removed in version 'newton': moved to neutron_lib.constants" TrivialFix Change-Id: I0a61ebb0d0c09464c264ffd51f054232c5e279b9
This commit is contained in:
parent
2079780b53
commit
17278368af
@ -76,7 +76,7 @@ class TestDbBasePluginIpam(test_db_base.NeutronDbPluginV2TestCase):
|
||||
'subnet': mock.Mock(),
|
||||
'subnets': mock.Mock(),
|
||||
'port': {
|
||||
'device_owner': n_const.DEVICE_OWNER_COMPUTE_PREFIX + 'None'
|
||||
'device_owner': constants.DEVICE_OWNER_COMPUTE_PREFIX + 'None'
|
||||
},
|
||||
'subnet_request': ipam_req.SpecificSubnetRequest(
|
||||
self.tenant_id,
|
||||
|
Loading…
Reference in New Issue
Block a user