Skip to content

Commit

Permalink
Allowed address pair mac-address
Browse files Browse the repository at this point in the history
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 cf78047)
  • Loading branch information
bailkeri committed Feb 18, 2016
1 parent 0f0ecda commit e44854d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/api-server/vnc_cfg_types.py
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit e44854d

Please sign in to comment.