N1kv trunk driver: same mac assigned to ports created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-cisco |
Fix Committed
|
Undecided
|
Yanping Qu | ||
Kilo |
Fix Committed
|
Undecided
|
Yanping Qu | ||
Liberty |
Fix Committed
|
Undecided
|
Yanping Qu |
Bug Description
When N1kv trunk driver creates management port and ports on trunk network, the same mac address is assigned to all these ports.
Cause:
N1kv trunk driver (n1kv_trunking_
When creating the management port, mac_address in p_spec['port'] is assigned to attributes.
-- The create_port function in neutron/
-- This function will generate a new mac address since 'mac_address' is attributes.
-- This function also save the newly generated mac address back to the port dictionary
N1kv trunk driver used the same p_spec to create the ports on trunk network.
-- the p_spec['port'] is updated first, such as 'name', but NOT the 'mac_address' which is now has the mac address assigned to the management port
-- The create_port function in neutron/
-- This function, since port['mac_address'] has a mac, will not generate a new mac, but calls _create_
As the result, the same mac address assigned to all the ports created.
Fix: when updating p_spec for creating the ports on trunk network, also update the mac_address in p_spec['port'] to attributes.
Changed in networking-cisco: | |
assignee: | nobody → Yanping Qu (yanping) |
Changed in networking-cisco: | |
status: | New → Fix Committed |
Changed in networking-cisco: | |
milestone: | none → 1.1.0 |
Fix proposed to branch: master /review. openstack. org/181112
Review: https:/