commit bd7902f965848b36ef485c60f3ad51aa9420aae6
Author: Kevin Benton <email address hidden>
Date: Wed Feb 15 21:40:07 2017 -0800
Allow no network to be passed into PortContext
This allows a PortContext to be constructed without a network
passed in for cases like update_port_status that don't examine
bindings, segments, or any other network properties.
In the event that a mechanism driver is loaded that does reference
the 'network' property for these occasions, the context will look
up the network then in a late binding fashion.
This will improve the performance of the update_port_status call
from the provisioning blocks callback, which doesn't provide a
cached network to update_port_status.
Partial-Bug: #1665215
Change-Id: I498791614fd456ab67c453cad691f7658d107123
(cherry picked from commit 60edb4c9519543a04d5ccc73c8b5371123fefcd8)
Reviewed: https:/ /review. openstack. org/439814 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=bd7902f9658 48b36ef485c60f3 ad51aa9420aae6
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit bd7902f965848b3 6ef485c60f3ad51 aa9420aae6
Author: Kevin Benton <email address hidden>
Date: Wed Feb 15 21:40:07 2017 -0800
Allow no network to be passed into PortContext
This allows a PortContext to be constructed without a network
passed in for cases like update_port_status that don't examine
bindings, segments, or any other network properties.
In the event that a mechanism driver is loaded that does reference
the 'network' property for these occasions, the context will look
up the network then in a late binding fashion.
This will improve the performance of the update_port_status call
from the provisioning blocks callback, which doesn't provide a
cached network to update_port_status.
Partial-Bug: #1665215 ab67c453cad691f 7658d107123 04d5ccc73c8b537 1123fefcd8)
Change-Id: I498791614fd456
(cherry picked from commit 60edb4c9519543a