[OVN] extra_dhcp_opts does not validate any options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
The OVN driver supports the extra_dhcp_opts extension, however, it does not validate any options passed to it leading to a lot of confusion. The user can input any value and OVN will accept it via the API (retuning 200) but, internally it will just ignore that option if not supported.
E.g:
(overcloud) [stack@undercloud-0 ~]$ neutron port-update --extra-dhcp-opt opt_name=
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Updated port: test_port
(overcloud) [stack@undercloud-0 ~]$ openstack port show test_port | grep -i dhcp
| extra_dhcp_opts | ip_version='4', opt_name=
()[root@
_uuid : a825bbdb-
cidr : "192.168.30.0/24"
external_ids : {"neutron:
options : {classless_
Changed in neutron: | |
importance: | Undecided → High |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
status: | New → Confirmed |
tags: | added: ovn |
Changed in neutron: | |
importance: | High → Medium |
Fix proposed to branch: master /review. opendev. org/722025
Review: https:/