-
Notifications
You must be signed in to change notification settings - Fork 2
Filter the ports by VNIC type #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cherry picked from https://review.opendev.org/c/openstack/neutron/+/847346 |
In ``check_baremetal_ports_dhcp_options``, the ports need to be retrieved based on the VNIC type. The VNIC type is stored in "ml2_port_bindings" table, not "ports" table. Because the ML2Plugin ``get_ports`` method can filter only by "ports" database register fields, it is needed to retrieve those ports using a custom database query and then use the plugin method to retrieve the ports, converted to dictionaries and the extensions processed. Closes-Bug: #1979643 Change-Id: Iab227d9de75e4b1b927043ce27bdc346066478e8 (cherry picked from commit b497ad1)
55430c1
to
ce7a692
Compare
fixed indent from previous sync ======
|
9603654
to
61cd541
Compare
fetched recent upstream version of https://review.opendev.org/c/openstack/neutron/+/868746 |
61cd541
to
ce7a692
Compare
removed ttps://review.opendev.org/c/openstack/neutron/+/868746, as it will be fetched from upstream with sync |
ready for reviews |
let's merge it after this got merged - https://review.opendev.org/c/openstack/neutron/+/869112, then we can build new neutron images |
Conflicts resolved:
neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py:
added 'from neutron.objects import ports as ports_obj' as does upstream
neutron/objects/ports.py:
removed '@db_api.CONTEXT_READER' as it is not existing in yoga (openstack@eeb918e)
In
check_baremetal_ports_dhcp_options
, the ports need to be retrieved based on the VNIC type. The VNIC type is stored in "ml2_port_bindings" table, not "ports" table. Because the ML2Pluginget_ports
method can filter only by "ports" database register fields, it is needed to retrieve those ports using a custom database query and then use the plugin method to retrieve the ports, converted to dictionaries and the extensions processed.Closes-Bug: #1979643
Change-Id: Iab227d9de75e4b1b927043ce27bdc346066478e8 (cherry picked from commit b497ad1)