Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/tests/unit/ofproto/test_parser_v12.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/tests/unit/ofproto/test_parser_v12.py 
b/ryu/tests/unit/ofproto/test_parser_v12.py
index 0bf4753..783d961 100644
--- a/ryu/tests/unit/ofproto/test_parser_v12.py
+++ b/ryu/tests/unit/ofproto/test_parser_v12.py
@@ -23,6 +23,8 @@ from nose.tools import *
 from nose.plugins.skip import Skip, SkipTest
 from ryu.ofproto.ofproto_v1_2_parser import *
 from ryu.ofproto import ofproto_v1_2_parser
+from ryu.ofproto import ofproto_v1_2
+from ryu.ofproto import ofproto_protocol
 from ryu.ofproto import ether
 from ryu.ofproto.ofproto_parser import MsgBase
 from ryu import utils
@@ -31,9 +33,7 @@ from ryu.lib import addrconv
 LOG = logging.getLogger('test_ofproto_v12')
 
 
-class _Datapath(object):
-    ofproto = ofproto  # copy to class attribute
-    ofproto_parser = ofproto_v1_2_parser
+_Datapath = ofproto_protocol.ProtocolDesc(version=ofproto_v1_2.OFP_VERSION)
 
 
 class TestRegisterParser(unittest.TestCase):
-- 
1.8.3.1


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to