blob: ba5859639ef507f29e5ca571cf5038dd197c03ae [file] [log] [blame]
Rich Laneaeb2a072013-12-17 14:34:03 -08001"""
2Test the BSN controller connections request
3"""
4import struct
5import unittest
6import logging
7
8import oftest
9from oftest import config
10import oftest.controller as controller
11import ofp
12import oftest.base_tests as base_tests
13
14from oftest.testutils import *
15
16class 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)