Esempio n. 1
0
def setup_table_config(parent, table_id, table_config):
    request = message.table_mod()
    request.table_id = table_id
    request.config = table_config
    rv = parent.controller.message_send(request)
    parent.assertTrue(rv != -1, "Error configuring table")
    testutils.do_barrier(parent.controller)
Esempio n. 2
0
def setup_table_config(parent, table_id, table_config):
    request = message.table_mod()
    request.table_id = table_id
    request.config = table_config
    rv = parent.controller.message_send(request)
    parent.assertTrue(rv != -1, "Error configuring table")
    testutils.do_barrier(parent.controller)
Esempio n. 3
0
 def runTest(self):
     basic_logger.info("Running " + str(self))
     table_mod = message.table_mod()
     table_mod.table_id = 0 # first table should always exist
     table_mod.config = ofp.OFPTC_TABLE_MISS_CONTROLLER
     
     rv = self.controller.message_send(table_mod)
     self.assertTrue(rv != -1, "Error sending table_mod")
     testutils.do_echo_request_reply_test(self, self.controller)
Esempio n. 4
0
    def runTest(self):
        basic_logger.info("Running " + str(self))
        table_mod = message.table_mod()
        table_mod.table_id = 0  # first table should always exist
        table_mod.config = ofp.OFPTC_TABLE_MISS_CONTROLLER

        rv = self.controller.message_send(table_mod)
        self.assertTrue(rv != -1, "Error sending table_mod")
        testutils.do_echo_request_reply_test(self, self.controller)