mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 12:26:11 +02:00
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>
This commit is contained in:
parent
3cccf23238
commit
68025e66b1
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user