Prior to this patch OVN did not validate any extra DHCP option passed
to the port leading to confusion because the user of the API could just
input any value and OVN would accept it (returning 200) but ignoring the
option internally.
This patch now adds such validations on port creation and update.
This patch also sync with the latest supported DHCP options from OVN and
create a map between the different names and option codes to their OVN
counterpart.
Closes-bug: #1874282
Change-Id: I99799e54e941cdd8da2614feecad1ef6299703fc
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit f6010f60429347485464107b3a838065f2f7ff7d)
Reviewed: https:/ /review. opendev. org/733122 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=32667390c71 d74af54ff443479 68413b930f97d8
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 32667390c71d74a f54ff4434796841 3b930f97d8
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Apr 22 15:59:33 2020 +0100
[OVN] Enhance port's extra DHCP options support
Prior to this patch OVN did not validate any extra DHCP option passed
to the port leading to confusion because the user of the API could just
input any value and OVN would accept it (returning 200) but ignoring the
option internally.
This patch now adds such validations on port creation and update.
This patch also sync with the latest supported DHCP options from OVN and
create a map between the different names and option codes to their OVN
counterpart.
Closes-bug: #1874282 d8da2614feecad1 ef6299703fc 85464107b3a8380 65f2f7ff7d)
Change-Id: I99799e54e941cd
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit f6010f604293474