Switch to use subnet OVO object in get_subnet

get_subnet method returns subnet dict object so it can be
switched to use _get_subnet_object private method and pass
subnet OVO to _make_subnet_dict()

Change-Id: I61225992a03d17adfd606463e3841f9b0c0c1a2d
Partially-Implements: bp/adopt-oslo-versioned-objects-for-db
This commit is contained in:
Sławek Kapłoński 2017-12-11 11:18:25 +01:00
parent 259eedaaba
commit f44790badd

View File

@ -1019,7 +1019,7 @@ class NeutronDbPluginV2(db_base_plugin_common.DbBasePluginCommon,
@db_api.retry_if_session_inactive()
def get_subnet(self, context, id, fields=None):
subnet_obj = self._get_subnet(context, id)
subnet_obj = self._get_subnet_object(context, id)
return self._make_subnet_dict(subnet_obj, fields, context=context)
@db_api.retry_if_session_inactive()