@@ -1233,7 +1233,8 @@ def _test_bind_port_failed(self, fake_segments):
1233
1233
fake_port , fake_host , fake_segments )
1234
1234
self .mech_driver .bind_port (fake_port_context )
1235
1235
neutron_agent .AgentCache ().get_agents .assert_called_once_with (
1236
- {'host' : fake_host })
1236
+ {'host' : fake_host ,
1237
+ 'agent_type' : ovn_const .OVN_CONTROLLER_TYPES })
1237
1238
fake_port_context .set_binding .assert_not_called ()
1238
1239
1239
1240
def test_bind_port_host_not_found (self ):
@@ -1263,7 +1264,8 @@ def _test_bind_port(self, fake_segments):
1263
1264
fake_port , fake_host , fake_segments )
1264
1265
self .mech_driver .bind_port (fake_port_context )
1265
1266
neutron_agent .AgentCache ().get_agents .assert_called_once_with (
1266
- {'host' : fake_host })
1267
+ {'host' : fake_host ,
1268
+ 'agent_type' : ovn_const .OVN_CONTROLLER_TYPES })
1267
1269
fake_port_context .set_binding .assert_called_once_with (
1268
1270
fake_segments [0 ]['id' ],
1269
1271
portbindings .VIF_TYPE_OVS ,
@@ -1280,7 +1282,8 @@ def _test_bind_port_sriov(self, fake_segments):
1280
1282
fake_port , fake_host , fake_segments )
1281
1283
self .mech_driver .bind_port (fake_port_context )
1282
1284
neutron_agent .AgentCache ().get_agents .assert_called_once_with (
1283
- {'host' : fake_host })
1285
+ {'host' : fake_host ,
1286
+ 'agent_type' : ovn_const .OVN_CONTROLLER_TYPES })
1284
1287
fake_port_context .set_binding .assert_called_once_with (
1285
1288
fake_segments [0 ]['id' ],
1286
1289
portbindings .VIF_TYPE_OVS ,
@@ -1310,7 +1313,8 @@ def _test_bind_port_remote_managed(self, fake_segments):
1310
1313
fake_port , fake_host , fake_segments )
1311
1314
self .mech_driver .bind_port (fake_port_context )
1312
1315
neutron_agent .AgentCache ().get_agents .assert_called_once_with (
1313
- {'host' : fake_smartnic_dpu })
1316
+ {'host' : fake_smartnic_dpu ,
1317
+ 'agent_type' : ovn_const .OVN_CONTROLLER_TYPES })
1314
1318
fake_port_context .set_binding .assert_called_once_with (
1315
1319
fake_segments [0 ]['id' ],
1316
1320
portbindings .VIF_TYPE_OVS ,
@@ -1331,7 +1335,8 @@ def test_bind_port_vdpa(self):
1331
1335
fake_port , fake_host , fake_segments )
1332
1336
self .mech_driver .bind_port (fake_port_context )
1333
1337
neutron_agent .AgentCache ().get_agents .assert_called_once_with (
1334
- {'host' : fake_host })
1338
+ {'host' : fake_host ,
1339
+ 'agent_type' : ovn_const .OVN_CONTROLLER_TYPES })
1335
1340
fake_port_context .set_binding .assert_called_once_with (
1336
1341
fake_segments [0 ]['id' ],
1337
1342
portbindings .VIF_TYPE_OVS ,
0 commit comments