From adb4e3e66b5fbf535e067ad7e630478db10c5536 Mon Sep 17 00:00:00 2001 From: Yoshihiro Kaneko Date: Mon, 1 Apr 2013 13:15:22 +0900 Subject: [PATCH] of1.0: fix import error Fix the 533fd972519871afe441d365f911a2970fe0875f commit. This patch fixes the following issue. Traceback (most recent call last): File "/opt/stack/ryu/bin/ryu-manager", line 42, in from ryu.base.app_manager import AppManager File "/opt/stack/ryu/ryu/base/app_manager.py", line 25, in from ryu.controller.handler import register_instance File "/opt/stack/ryu/ryu/controller/handler.py", line 20, in from ryu.controller import ofp_event File "/opt/stack/ryu/ryu/controller/ofp_event.py", line 75, in _create_ofp_msg_ev_from_module(m) File "/opt/stack/ryu/ryu/controller/ofp_event.py", line 60, in _create_ofp_msg_ev_from_module mod = utils.import_module(modname) File "/opt/stack/ryu/ryu/utils.py", line 35, in import_module __import__(name) File "/opt/stack/ryu/ryu/ofproto/ofproto_v1_0_parser.py", line 26, in import utils.round_up ImportError: No module named utils.round_up Signed-off-by: Yoshihiro Kaneko Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index e44d6ae7..f9673fba 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -23,7 +23,7 @@ from ryu.lib import mac from . import ofproto_parser from . import ofproto_v1_0 from . import nx_match -import utils.round_up +from ryu import utils import logging LOG = logging.getLogger('ryu.ofproto.ofproto_v1_0_parser')