loxi-prep: access message/action modules through the ofp module
diff --git a/tests/openflow_protocol_messages.py b/tests/openflow_protocol_messages.py
index 81b1e05..18a0396 100644
--- a/tests/openflow_protocol_messages.py
+++ b/tests/openflow_protocol_messages.py
@@ -13,9 +13,7 @@
from oftest import config
import oftest.controller as controller
import ofp
-import oftest.message as message
import oftest.dataplane as dataplane
-import oftest.action as action
import oftest.parse as parse
import oftest.base_tests as base_tests
@@ -41,7 +39,7 @@
logging.info("Sending Features_Request")
logging.info("Expecting Features_Reply")
- request = message.features_request()
+ request = ofp.message.features_request()
self.controller.message_send(request)
(response, pkt) = self.controller.poll(exp_msg=ofp.OFPT_FEATURES_REPLY,
@@ -69,7 +67,7 @@
logging.info("Sending OFPT_GET_CONFIG_REQUEST ")
logging.info("Expecting OFPT_GET_CONFIG_REPLY ")
- request = message.get_config_request()
+ request = ofp.message.get_config_request()
self.controller.message_send(request)
(response, pkt) = self.controller.poll(exp_msg=ofp.OFPT_GET_CONFIG_REPLY,
@@ -219,9 +217,9 @@
(simple_eth_packet(), "simple Ethernet packet"),
(simple_eth_packet(pktlen=40), "tiny Ethernet packet")]:
- msg = message.packet_out()
+ msg = ofp.message.packet_out()
msg.data = str(outpkt)
- act = action.action_output()
+ act = ofp.action.action_output()
act.port = dp_port
msg.actions.add(act)
@@ -297,7 +295,7 @@
logging.info("Expecting a Hello on the control plane with version--1.0.0")
#Send Hello message
- request = message.hello()
+ request = ofp.message.hello()
(response, pkt) = self.controller.poll(exp_msg=ofp.OFPT_HELLO,
timeout=1)
self.assertTrue(response is not None,
@@ -320,7 +318,7 @@
logging.info("Expecting a Echo Reply with version--1.0.0 and same xid")
# Send echo_request
- request = message.echo_request()
+ request = ofp.message.echo_request()
(response, pkt) = self.controller.transact(request)
self.assertEqual(response.header.type, ofp.OFPT_ECHO_REPLY,'response is not echo_reply')
self.assertEqual(request.header.xid, response.header.xid,
@@ -343,7 +341,7 @@
logging.info("Expecting a Barrier Reply with same xid")
#Send Barrier Request
- request = message.barrier_request()
+ request = ofp.message.barrier_request()
(response,pkt) = self.controller.transact(request)
self.assertEqual(response.header.type, ofp.OFPT_BARRIER_REPLY,'response is not barrier_reply')
self.assertEqual(request.header.xid, response.header.xid,