Skip to content

Commit

Permalink
If mac address is specified in EUI representation, convert it.
Browse files Browse the repository at this point in the history
Replace '-' with ':'

Change-Id: Iea5b250ba9a6114a837ef67d28e03711c07026ab
closes-bug: 1448949
  • Loading branch information
haripk committed May 7, 2015
1 parent 77813e9 commit 64b2ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/api-server/vnc_cfg_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def http_post_collection(cls, tenant_name, obj_dict, db_conn):
mc = obj_dict['virtual_machine_interface_mac_addresses']
if 'mac_address' in mc:
if len(mc['mac_address'])==1:
inmac = mc['mac_address']
inmac = [m.replace("-",":") for m in mc['mac_address']]
if inmac!=None:
mac_addrs_obj = MacAddressesType(inmac)
else:
Expand Down

0 comments on commit 64b2ff4

Please sign in to comment.