Example #1
0
 def test_list_br(self):
     self.sock.send(ovsdb.list_bridges())
     bridge_list = ovsdb.gather_reply(self.sock)
     bridges = bridge_list['result']['Bridge']
     #print bridges
     print bridges.values()
     self.assertTrue("br0" in bridges.values())
Example #2
0
 def test_monitor(self):
     columns = {"Bridge": {"columns": ["name"]}}
     self.sock.send(ovsdb.monitor(columns))
     result = ovsdb.gather_reply(self.sock)
     self.assertEqual(result['error'], None)
     self.assertEqual(result['id'], 0)
     self.assertTrue("Bridge" in result['result'])
Example #3
0
 def test_list_br(self):
     self.sock.send(ovsdb.list_bridges())
     bridge_list = ovsdb.gather_reply(self.sock)
     bridges = bridge_list['result']['Bridge']
     #print bridges
     print bridges.values()
     self.assertTrue("br0" in bridges.values())
Example #4
0
 def test_monitor(self):
     columns = {"Bridge":{"columns":["name"]}}
     self.sock.send(ovsdb.monitor(columns))
     result = ovsdb.gather_reply(self.sock)
     self.assertEqual(result['error'], None)
     self.assertEqual(result['id'], 0)
     self.assertTrue("Bridge" in result['result'])
Example #5
0
 def test_list_dbs(self):
     self.sock.send(ovsdb.list_dbs())
     db_list = ovsdb.gather_reply(self.sock)
     db_name = db_list['result'][0]
     self.assertEqual(db_name, 'Open_vSwitch')
Example #6
0
 def test_list_dbs(self):
     self.sock.send(ovsdb.list_dbs())
     db_list = ovsdb.gather_reply(self.sock)
     db_name = db_list['result'][0]
     self.assertEqual(db_name, 'Open_vSwitch')