Skip to content

Commit 0d8cc09

Browse files
committed
[stable only] Fix KeyError in set_gateway_mtu
Got missed in initial fixes[1], this patch fixes it. [1] https://review.opendev.org/q/I447990509cdea9830228d3bc92a97062cc57a472 Closes-Bug: #2065701 Related-Bug: #2060163 Change-Id: Icdab45ab0873c003977e3f02277d267116002973
1 parent 97e4713 commit 0d8cc09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ def set_gateway_mtu(self, context, prov_net, txn=None):
20592059
lrp_name = utils.ovn_lrouter_port_name(port['id'])
20602060
options = self._gen_router_port_options(port, prov_net)
20612061
commands.append(self._nb_idl.update_lrouter_port(
2062-
lrp_name, if_exists=True, **options))
2062+
lrp_name, if_exists=True, options=options))
20632063
self._transaction(commands, txn=txn)
20642064

20652065
def _check_network_changes_in_ha_chassis_groups(self,

neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ def _test_update_network_fragmentation(self, new_mtu, expected_opts, grps,
25742574

25752575
lrp_name = ovn_utils.ovn_lrouter_port_name(port['port']['id'])
25762576
self.nb_ovn.update_lrouter_port.assert_called_once_with(
2577-
lrp_name, if_exists=True, **expected_opts)
2577+
lrp_name, if_exists=True, options=expected_opts)
25782578

25792579
def test_update_network_need_to_frag_enabled(self):
25802580
ovn_conf.cfg.CONF.set_override('ovn_emit_need_to_frag', True,

0 commit comments

Comments
 (0)