Skip to content

Commit cd92d42

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 (cherry picked from commit 0d8cc09) (cherry picked from commit 4c56dfd)
1 parent ce2560f commit cd92d42

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
@@ -1984,7 +1984,7 @@ def set_gateway_mtu(self, context, prov_net, txn=None):
19841984
lrp_name = utils.ovn_lrouter_port_name(port['id'])
19851985
options = self._gen_router_port_options(port, prov_net)
19861986
commands.append(self._nb_idl.update_lrouter_port(
1987-
lrp_name, if_exists=True, **options))
1987+
lrp_name, if_exists=True, options=options))
19881988
self._transaction(commands, txn=txn)
19891989

19901990
def _check_network_changes_in_ha_chassis_groups(self, context, lswitch,

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
@@ -2485,7 +2485,7 @@ def _test_update_network_fragmentation(self, new_mtu, expected_opts, grps):
24852485

24862486
lrp_name = ovn_utils.ovn_lrouter_port_name(port['port']['id'])
24872487
self.nb_ovn.update_lrouter_port.assert_called_once_with(
2488-
lrp_name, if_exists=True, **expected_opts)
2488+
lrp_name, if_exists=True, options=expected_opts)
24892489

24902490
def test_update_network_need_to_frag_enabled(self):
24912491
ovn_conf.cfg.CONF.set_override('ovn_emit_need_to_frag', True,

0 commit comments

Comments
 (0)