Rich Lane | aeb2a07 | 2013-12-17 14:34:03 -0800 | [diff] [blame] | 1 | """ |
| 2 | Test the BSN controller connections request |
| 3 | """ |
| 4 | import struct |
| 5 | import unittest |
| 6 | import logging |
| 7 | |
| 8 | import oftest |
| 9 | from oftest import config |
| 10 | import oftest.controller as controller |
| 11 | import ofp |
| 12 | import oftest.base_tests as base_tests |
| 13 | |
| 14 | from oftest.testutils import * |
| 15 | |
| 16 | class BsnControllerConnectionsRequest(base_tests.SimpleProtocol): |
| 17 | """ |
| 18 | Verify that the switch sends a bsn_controller_connections_reply in response |
| 19 | to the request |
| 20 | """ |
| 21 | def runTest(self): |
| 22 | request = ofp.message.bsn_controller_connections_request() |
| 23 | response, _ = self.controller.transact(request) |
| 24 | self.assertIsInstance(response, ofp.message.bsn_controller_connections_reply) |