From e44854d279eb48586e1604e3dfab9d81ee341643 Mon Sep 17 00:00:00 2001 From: Prakash Bailkeri Date: Tue, 16 Feb 2016 14:17:09 +0530 Subject: [PATCH] Allowed address pair mac-address When allowed address pair mac is not specified, it is defaulted to VMI mac. But it is set as array of string instead of string. Fix to set it as string iso array Change-Id: I4d837bd9c2988bcb286af45a3eec032bdf56038d Closes-bug: #1545824 (cherry picked from commit cf7804795ae34618b24e3e4e4639df23eb9a0ceb) --- 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 c59d6ed7b54..9aac95a77da 100644 --- a/src/config/api-server/vnc_cfg_types.py +++ b/src/config/api-server/vnc_cfg_types.py @@ -396,7 +396,7 @@ def http_post_collection(cls, tenant_name, obj_dict, db_conn): aaps = aap_config['allowed_address_pair'] for aap in aaps or []: if aap['mac'] == "": - aap['mac'] = obj_dict['virtual_machine_interface_mac_addresses']['mac_address'] + aap['mac'] = obj_dict['virtual_machine_interface_mac_addresses']['mac_address'][0] return True, "" # end http_post_collection @@ -413,7 +413,7 @@ def http_put(cls, id, fq_name, obj_dict, db_conn): aaps = aap_config['allowed_address_pair'] for aap in aaps or []: if aap['mac'] == "": - aap['mac'] = read_result['virtual_machine_interface_mac_addresses']['mac_address'] + aap['mac'] = read_result['virtual_machine_interface_mac_addresses']['mac_address'][0] return True, "" # end http_put # end class VirtualMachineInterfaceServer