|
|
|
@ -36,7 +36,7 @@ class TestSbApi(base.FunctionalTestCase,
|
|
|
|
|
{'external_ids': {'ovn-bridge-mappings': |
|
|
|
|
'public:br-ex,private:br-0'}}, |
|
|
|
|
{'external_ids': {'ovn-bridge-mappings': |
|
|
|
|
'public:br-ex,public2:br-ex'}}, |
|
|
|
|
'public:br-ex,public2:br-ex2'}}, |
|
|
|
|
{'external_ids': {'ovn-bridge-mappings': |
|
|
|
|
'public:br-ex'}}, |
|
|
|
|
] |
|
|
|
@ -86,6 +86,15 @@ class TestSbApi(base.FunctionalTestCase,
|
|
|
|
|
self.assertGreaterEqual(set(mapping.keys()), |
|
|
|
|
{c['name'] for c in self.data['chassis']}) |
|
|
|
|
|
|
|
|
|
def test_multiple_physnets_in_one_bridge(self): |
|
|
|
|
self.data = { |
|
|
|
|
'chassis': [ |
|
|
|
|
{'external_ids': {'ovn-bridge-mappings': 'p1:br-ex,p2:br-ex'}} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
self.load_test_data() |
|
|
|
|
self.assertRaises(ValueError, self.api.get_chassis_and_physnets) |
|
|
|
|
|
|
|
|
|
def _add_switch_port(self, chassis_name, type='localport'): |
|
|
|
|
sname, pname = (utils.get_rand_device_name(prefix=p) |
|
|
|
|
for p in ('switch', 'port')) |
|
|
|
|