diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-05-17 10:52:12 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-18 16:00:09 +0900 |
commit | 68025e66b1e6fdf543ffae17b7749141faf270bb (patch) | |
tree | 6fbf1c1a8a9801d9c75bf5adfd683b234a295f5a | |
parent | 3cccf23238dd073adb47f7c2742c66f6bdba2f73 (diff) |
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 <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/controller/network.py | 4 |
1 files changed, 3 insertions, 1 deletions
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' |