commit 921e87cc7b9f08c319061a06ff2f34f7e7ad9d75 Author: Moshe Levi Date: Tue Oct 6 20:57:22 2020 +0300 fix in replace dhcp opt the compare to string Change-Id: I7c7752a87f260e35ca1e7caeb7f3e21f729d23a6 diff --git a/networking_mlnx/plugins/ml2/drivers/sdn/sdn_mech_driver.py b/networking_mlnx/plugins/ml2/drivers/sdn/sdn_mech_driver.py index a84aa88..b30af86 100644 --- a/networking_mlnx/plugins/ml2/drivers/sdn/sdn_mech_driver.py +++ b/networking_mlnx/plugins/ml2/drivers/sdn/sdn_mech_driver.py @@ -223,7 +223,7 @@ class SDNMechanismDriver(api.MechanismDriver): dhcp_opts = port.get('extra_dhcp_opts', []) for dhcp_opt in dhcp_opts: if (isinstance(dhcp_opt, dict) and - dhcp_opt.get('opt_name') == old_opt_name): + dhcp_opt.get('opt_name') == str(old_opt_name)): dhcp_opt['opt_name'] = new_opt_name return