vmware-nsx/neutron/plugins/openvswitch/agent
Salvatore Orlando 6a9f0ab42f Avoid processing ports which are not yet ready
This patch changes get_vif_port_set in order to not return
OVS ports for which the ofport is not yet assigned, thus avoiding
a regex match failure in get_vif_port_by_id.
Because of this failure, treat_vif_port is unable to wire
the port.
As get_vif_port_by_id is also used elsewhere in the agent, it has
been enhanced in order to tolerate situations in which ofport might
have not yet been assigned.

The ofport field is added to the list of those monitored by the
SimpleInterfaceMonitor. This will guarantee an event is generated
when the ofport is assigned to a port. Otherwise there is a risk
a port would be never processed if it was not yet ready the first
time is was detected. This change won't trigger any extra processing
on the agent side.

Finally, this patch avoids fetching device details from the plugin
for ports which have disappeared from the OVS bridge. This is a
little optimization which might be beneficial for short lived ports.

Change-Id: Icf7f0c7d6fe5239a358567cc9dc9db8ec11c15be
Partial-Bug: #1253896
2014-02-13 15:38:05 -08:00
..
xenapi neutron-rootwrap-xen-dom0 handles data from stdin 2013-12-19 09:50:10 +01:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
ovs_neutron_agent.py Avoid processing ports which are not yet ready 2014-02-13 15:38:05 -08:00