|
|
|
@ -858,11 +858,11 @@ class TestOvsNeutronAgent(object):
|
|
|
|
|
mock.call.int_br.drop_port(in_port='int_ofport'),
|
|
|
|
|
mock.call.phys_br.drop_port(in_port='phy_ofport'),
|
|
|
|
|
mock.call.int_br.set_db_attribute('Interface', 'int-br-eth',
|
|
|
|
|
'options:peer',
|
|
|
|
|
'phy-br-eth'),
|
|
|
|
|
'options',
|
|
|
|
|
{'peer': 'phy-br-eth'}),
|
|
|
|
|
mock.call.phys_br.set_db_attribute('Interface', 'phy-br-eth',
|
|
|
|
|
'options:peer',
|
|
|
|
|
'int-br-eth'),
|
|
|
|
|
'options',
|
|
|
|
|
{'peer': 'int-br-eth'}),
|
|
|
|
|
]
|
|
|
|
|
parent.assert_has_calls(expected_calls)
|
|
|
|
|
self.assertEqual(self.agent.int_ofports["physnet1"],
|
|
|
|
@ -935,11 +935,11 @@ class TestOvsNeutronAgent(object):
|
|
|
|
|
mock.call.int_br.drop_port(in_port='int_ofport'),
|
|
|
|
|
mock.call.phys_br.drop_port(in_port='phy_ofport'),
|
|
|
|
|
mock.call.int_br.set_db_attribute('Interface', 'int-br-eth',
|
|
|
|
|
'options:peer',
|
|
|
|
|
'phy-br-eth'),
|
|
|
|
|
'options',
|
|
|
|
|
{'peer': 'phy-br-eth'}),
|
|
|
|
|
mock.call.phys_br.set_db_attribute('Interface', 'phy-br-eth',
|
|
|
|
|
'options:peer',
|
|
|
|
|
'int-br-eth'),
|
|
|
|
|
'options',
|
|
|
|
|
{'peer': 'int-br-eth'}),
|
|
|
|
|
]
|
|
|
|
|
parent.assert_has_calls(expected_calls)
|
|
|
|
|
self.assertEqual(self.agent.int_ofports["physnet1"],
|
|
|
|
|