Skip to content

Commit 763000d

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) (cherry picked from commit cd92d42)
1 parent ece6a9a commit 763000d

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
@@ -2094,7 +2094,7 @@ def set_gateway_mtu(self, context, prov_net, txn=None):
20942094
lrp_name = utils.ovn_lrouter_port_name(port['id'])
20952095
options = self._gen_router_port_options(port, prov_net)
20962096
commands.append(self._nb_idl.update_lrouter_port(
2097-
lrp_name, if_exists=True, **options))
2097+
lrp_name, if_exists=True, options=options))
20982098
self._transaction(commands, txn=txn)
20992099

21002100
def update_network(self, context, network, original_network=None):

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

24482448
lrp_name = ovn_utils.ovn_lrouter_port_name(port['port']['id'])
24492449
self.nb_ovn.update_lrouter_port.assert_called_once_with(
2450-
lrp_name, if_exists=True, **expected_opts)
2450+
lrp_name, if_exists=True, options=expected_opts)
24512451

24522452
def test_update_network_need_to_frag_enabled(self):
24532453
ovn_conf.cfg.CONF.set_override('ovn_emit_need_to_frag', True,

0 commit comments

Comments
 (0)