There are some L2 topologies in which traffic from a physical server can come into multiple interfaces on the ToR switch configured by the Nexus plugin. In the case of server directly attached to ToR, this is easily taken care of by by port-channel/bonding. However, if an intermediary device (e.g. Cisco UCS Fabric Interconnect) is placed between the server and the Top of Rack switch, then server traffic has the possibility of coming into multiple interfaces on the same switch. So the user needs to be able to specify multiple interfaces per host.
Currently the plugin stores the information in a dictionary defined like this:
device_dictionary[dev_id, dev_ip, dev_key] = value[0]
In this setup, specifying a second interface would just overwrite the first. We need to either make the dictionary key include the interface, or make the value of the current dictionary key a list instead of single item.
Fix proposed to branch: master /review. openstack. org/113009
Review: https:/