mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
ofproto: Refine module import
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
5116d1f84f
commit
81208354e9
@ -20,9 +20,9 @@ import struct
|
||||
from ryu import exception
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_v1_0
|
||||
from . import inet
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_v1_0
|
||||
from ryu.ofproto import inet
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger('ryu.ofproto.nx_match')
|
||||
|
||||
@ -20,14 +20,13 @@ import base64
|
||||
import collections
|
||||
import logging
|
||||
import struct
|
||||
import sys
|
||||
import functools
|
||||
|
||||
from ryu import exception
|
||||
from ryu import utils
|
||||
from ryu.lib import stringify
|
||||
|
||||
from . import ofproto_common
|
||||
from ryu.ofproto import ofproto_common
|
||||
|
||||
LOG = logging.getLogger('ryu.ofproto.ofproto_parser')
|
||||
|
||||
|
||||
@ -22,14 +22,14 @@ import struct
|
||||
import binascii
|
||||
import six
|
||||
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, msg_str_attr
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase
|
||||
from ryu.lib import addrconv
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from . import ofproto_common
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_v1_0 as ofproto
|
||||
from . import nx_match
|
||||
from ryu.ofproto import ofproto_common
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_v1_0 as ofproto
|
||||
from ryu.ofproto import nx_match
|
||||
from ryu import utils
|
||||
|
||||
import logging
|
||||
|
||||
@ -20,16 +20,15 @@ Decoder/Encoder implementations of OpenFlow 1.2.
|
||||
|
||||
import six
|
||||
import struct
|
||||
import itertools
|
||||
|
||||
from ryu.lib import addrconv
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from ryu import utils
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, msg_str_attr
|
||||
from . import ether
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_v1_2 as ofproto
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase
|
||||
from ryu.ofproto import ether
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_v1_2 as ofproto
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger('ryu.ofproto.ofproto_v1_2_parser')
|
||||
|
||||
@ -42,18 +42,17 @@ The following extensions are not implemented yet.
|
||||
|
||||
import six
|
||||
import struct
|
||||
import itertools
|
||||
|
||||
from ryu.lib import addrconv
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from ryu import utils
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, msg_str_attr
|
||||
from . import ether
|
||||
from . import nicira_ext
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_common
|
||||
from . import ofproto_v1_3 as ofproto
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase
|
||||
from ryu.ofproto import ether
|
||||
from ryu.ofproto import nx_actions
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_common
|
||||
from ryu.ofproto import ofproto_v1_3 as ofproto
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger('ryu.ofproto.ofproto_v1_3_parser')
|
||||
@ -6114,8 +6113,6 @@ class OFPSetAsync(MsgBase):
|
||||
self.flow_removed_mask[0], self.flow_removed_mask[1])
|
||||
|
||||
|
||||
from ryu.ofproto import nx_actions
|
||||
|
||||
nx_actions.generate(
|
||||
'ryu.ofproto.ofproto_v1_3',
|
||||
'ryu.ofproto.ofproto_v1_3_parser'
|
||||
|
||||
@ -20,17 +20,14 @@ Decoder/Encoder implementations of OpenFlow 1.4.
|
||||
|
||||
import six
|
||||
import struct
|
||||
import itertools
|
||||
|
||||
from ryu.lib import addrconv
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from ryu import utils
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, MsgInMsgBase, msg_str_attr
|
||||
from . import ether
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_common
|
||||
from . import ofproto_v1_4 as ofproto
|
||||
from ryu.ofproto import ether
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_v1_4 as ofproto
|
||||
|
||||
_MSG_PARSERS = {}
|
||||
|
||||
|
||||
@ -20,18 +20,16 @@ Decoder/Encoder implementations of OpenFlow 1.5.
|
||||
|
||||
import six
|
||||
import struct
|
||||
import itertools
|
||||
|
||||
from ryu.lib import addrconv
|
||||
from ryu.lib import mac
|
||||
from ryu.lib.pack_utils import msg_pack_into
|
||||
from ryu import utils
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, MsgInMsgBase, msg_str_attr
|
||||
from . import ether
|
||||
from . import nicira_ext
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_common
|
||||
from . import ofproto_v1_5 as ofproto
|
||||
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase, MsgInMsgBase
|
||||
from ryu.ofproto import ether
|
||||
from ryu.ofproto import nx_actions
|
||||
from ryu.ofproto import ofproto_parser
|
||||
from ryu.ofproto import ofproto_common
|
||||
from ryu.ofproto import ofproto_v1_5 as ofproto
|
||||
|
||||
_MSG_PARSERS = {}
|
||||
|
||||
@ -6658,8 +6656,6 @@ class OFPBundleAddMsg(MsgInMsgBase):
|
||||
self.buf += tail_buf
|
||||
|
||||
|
||||
from . import nx_actions
|
||||
|
||||
nx_actions.generate(
|
||||
'ryu.ofproto.ofproto_v1_5',
|
||||
'ryu.ofproto.ofproto_v1_5_parser'
|
||||
|
||||
@ -23,7 +23,6 @@
|
||||
# value and mask are on-wire bytes.
|
||||
# mask is None if no mask.
|
||||
|
||||
import itertools
|
||||
import six
|
||||
import struct
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user