From 68025e66b1e6fdf543ffae17b7749141faf270bb Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 17 May 2016 10:52:12 +0900 Subject: [PATCH] network: Fix unresolved reference Because ryu/app/rest_nw_id.py has been deleted, the reference for NW_ID_UNKNOWN can not be resolved now. This patch fixes this problem. Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/controller/network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/controller/network.py b/ryu/controller/network.py index ac247ffd..9b9baa4e 100644 --- a/ryu/controller/network.py +++ b/ryu/controller/network.py @@ -18,12 +18,14 @@ import collections from ryu.base import app_manager import ryu.exception as ryu_exc -from ryu.app.rest_nw_id import NW_ID_UNKNOWN from ryu.controller import event from ryu.exception import NetworkNotFound, NetworkAlreadyExist from ryu.exception import PortAlreadyExist, PortNotFound, PortUnknown +NW_ID_UNKNOWN = '__NW_ID_UNKNOWN__' + + class MacAddressAlreadyExist(ryu_exc.RyuException): message = 'port (%(dpid)s, %(port)s) has already mac %(mac_address)s'