Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/tests/unit/lib/test_ofctl_v1_3.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/ryu/tests/unit/lib/test_ofctl_v1_3.py
b/ryu/tests/unit/lib/test_ofctl_v1_3.py
index 974d5de..81cfacb 100644
--- a/ryu/tests/unit/lib/test_ofctl_v1_3.py
+++ b/ryu/tests/unit/lib/test_ofctl_v1_3.py
@@ -21,16 +21,12 @@ from nose.tools import *
from ryu.lib import ofctl_v1_3
from ryu.ofproto import ofproto_v1_3, ofproto_v1_3_parser
+from ryu.ofproto import ofproto_protocol
from ryu.ofproto.ofproto_v1_3_parser import OFPActionPopMpls
LOG = logging.getLogger('test_ofctl_v1_3')
-class _Datapath(object):
- ofproto = ofproto_v1_3
- ofproto_parser = ofproto_v1_3_parser
-
-
class Test_ofctl_v1_3(unittest.TestCase):
""" Test case for ofctl_v1_3
@@ -43,7 +39,7 @@ class Test_ofctl_v1_3(unittest.TestCase):
pass
def test_to_actions_pop_mpls(self):
- dp = _Datapath()
+ dp = ofproto_protocol.ProtocolDesc(version=ofproto_v1_3.OFP_VERSION)
acts = [
{
--
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