From 70857c980a97b0ab38a84f318ec3148f7bb54b19 Mon Sep 17 00:00:00 2001 From: Divakar Date: Fri, 29 Jul 2016 21:58:17 +0530 Subject: [PATCH] Retrieve provider properties while reading VN When neutron port is created in an SRIOV VN, if port type is direct, the VN needs to have provider information. While retrieving the VN from Casandra, the provider properties are not retrieved. This is reslting in error while creating neutron port. Change-Id: I54b44ed69f28adb075dfd65e84aa3fb44c57e972 closes-bug: #1606370 --- src/config/api-server/vnc_cfg_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/api-server/vnc_cfg_types.py b/src/config/api-server/vnc_cfg_types.py index b764fb9f700..19f4246abd5 100644 --- a/src/config/api-server/vnc_cfg_types.py +++ b/src/config/api-server/vnc_cfg_types.py @@ -619,8 +619,8 @@ def pre_dbe_create(cls, tenant_name, obj_dict, db_conn): return (False, (400, msg)) vn_uuid = db_conn.fq_name_to_uuid('virtual-network', vn_fq_name) - ok, result = cls.dbe_read(db_conn, 'virtual-network', vn_uuid, - obj_fields=['parent_uuid']) + ok, result = cls.dbe_read(db_conn, 'virtual_network', vn_uuid, + obj_fields=['parent_uuid', 'provider_properties']) if not ok: return ok, result