Merge "[ovn] Metadata agent: fix checking datapath type"
This commit is contained in:
commit
0fb63f7297
@ -385,7 +385,8 @@ class MetadataAgent(object):
|
||||
"netdev"), the checksum between the metadata namespace and OVS is not
|
||||
correctly populated.
|
||||
"""
|
||||
if (self.ovs_idl.db_get('Bridge', self.ovn_bridge, 'datapath_type') !=
|
||||
if (self.ovs_idl.db_get(
|
||||
'Bridge', self.ovn_bridge, 'datapath_type').execute() !=
|
||||
ovn_const.CHASSIS_DATAPATH_NETDEV):
|
||||
return
|
||||
|
||||
|
@ -313,7 +313,7 @@ class TestMetadataAgent(base.TestOVNFunctionalBase):
|
||||
self.assertFalse(event.wait())
|
||||
|
||||
def test__ensure_datapath_checksum_if_dpdk(self):
|
||||
self.mock_ovsdb_idl.db_get.return_value = (
|
||||
self.mock_ovsdb_idl.db_get.return_value.execute.return_value = (
|
||||
ovn_const.CHASSIS_DATAPATH_NETDEV)
|
||||
regex = re.compile(r'-A POSTROUTING -p tcp -m tcp '
|
||||
r'-j CHECKSUM --checksum-fill')
|
||||
|
Loading…
Reference in New Issue
Block a user