diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2014-02-06 15:47:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-02-06 15:57:46 +0900 |
commit | b48772504f0daacac3e5f417c8e8bd179921c229 (patch) | |
tree | 858d12429d8c00b250b2cf3c511f39123421d1cc | |
parent | 474538af5b0e30d687f711942cb607e52cd6a2cd (diff) |
test_ofp_pktinfilter: simplify
stop inheriting RyuApp class to make the implementation of
other tests (tests.cmd.test_manager) easiler.
this module is for packet_in_filter decorator and does not
start ryu app anyway.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/unit/lib/test_ofp_pktinfilter.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ryu/tests/unit/lib/test_ofp_pktinfilter.py b/ryu/tests/unit/lib/test_ofp_pktinfilter.py index 6a77f056..61199f7b 100644 --- a/ryu/tests/unit/lib/test_ofp_pktinfilter.py +++ b/ryu/tests/unit/lib/test_ofp_pktinfilter.py @@ -20,7 +20,6 @@ import logging from nose.tools import * -from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.handler import ( set_ev_cls, @@ -40,11 +39,7 @@ class _Datapath(object): ofproto_parser = ofproto_v1_3_parser -class _PacketInFilterApp(app_manager.RyuApp): - - def __init__(self, *args, **kwargs): - super(_PacketInFilterApp, self).__init__(*args, **kwargs) - +class _PacketInFilterApp(object): @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) @packet_in_filter(RequiredTypeFilter, {'types': [ vlan.vlan, |