Skip to content

Commit 7a5cdc8

Browse files
committed
Set manadatory ip_version field in dhcp opts
The API is defined in: https://github.com/openstack/neutron-lib/blob/90fa9948fd3b36d121ec5fa0b8004404f6d86b45/neutron_lib/api/definitions/extra_dhcp_opt.py#L32 We were missing the ip_version field. This was causing a bad interaction with the OVN driver. See: https://bugs.launchpad.net/neutron/+bug/2081161
1 parent bccbca2 commit 7a5cdc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

networking_mlnx/plugins/ml2/drivers/mlnx/mech_mlnx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def _gen_client_id_with_prefix(self, port, prefix):
8686
def _gen_client_id_opt(self, port):
8787
client_id = self._gen_client_id(port)
8888
return [{"opt_name": edo_ext.DHCP_OPT_CLIENT_ID,
89-
"opt_value": client_id}]
89+
"opt_value": client_id
90+
"ip_version": 4}]
9091

9192
def _gen_none_client_id_opt(self, port):
9293
updated_extra_dhcp_opts = []

0 commit comments

Comments
 (0)