kuryr-libnetwork/kuryr_libnetwork
Hongbin Lu 5fb8275d12 Don't update existing port if no change
This allows external service pre-create a neutron port with
'binding:host_id' populated before passing the port to kuryr.
This is important because setting 'binding:host_id' is slow.
This blocks the docker daemon for serving other requests,
which blocks the whole system.
We want to have this field pre-populated so that the docker
daemon won't be blocked by this API call.

This commit also allows the 'device_owner' field to be
customized if users choose to pre-populate the 'binding:host_id'
field. In addition, this commit skips the API call to update the
neutron port if the 'binding:host_id' is pre-populated
and 'admin_state_up' and 'mac_address' fields are unchanged.

Closes-Bug: #1809306
Change-Id: I09c4a51410dffaec21ab0bb3db85df8c776c92e5
2019-01-19 22:57:11 +00:00
..
port_driver Don't update existing port if no change 2019-01-19 22:57:11 +00:00
schemata Allow new network ID pattern 2017-07-31 08:05:55 +00:00
tests Don't update existing port if no change 2019-01-19 22:57:11 +00:00
__init__.py versioning: let pbr handle versioning from tags 2016-08-18 10:50:14 +02:00
config.py Allow skip processing exposed ports 2018-04-22 17:11:24 +00:00
constants.py Introduce sriov port driver 2018-01-03 07:51:05 +00:00
controllers.py Avoid changing name of existing ports 2019-01-01 22:59:25 +00:00
opts.py auth: Add keystonev3 support 2016-09-13 08:18:53 +02:00
server.py Check for `standard-attr-tag` Neutron extension 2018-03-19 15:06:56 +01:00
utils.py Avoid changing name of existing ports 2019-01-01 22:59:25 +00:00
version.py Add reno support to kuryr-libnetwork 2017-02-06 09:30:43 -06:00