kuryr-libnetwork/kuryr_libnetwork/tests/unit/port_driver/drivers
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
..
__init__.py Driver based model for kuryr-libnetwork 2016-12-20 14:52:16 +00:00
test_nested.py Introduce sriov port driver 2018-01-03 07:51:05 +00:00
test_sriov.py Introduce sriov port driver 2018-01-03 07:51:05 +00:00
test_veth.py Don't update existing port if no change 2019-01-19 22:57:11 +00:00
test_vlan.py Don't update existing port if no change 2019-01-19 22:57:11 +00:00