MacAddressAlreadyExists and MacAddressNotFound

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/exception.py |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ryu/exception.py b/ryu/exception.py
index f226960..749c884 100644
--- a/ryu/exception.py
+++ b/ryu/exception.py
@@ -59,5 +59,22 @@ class PortUnknown(RyuException):
     message = 'unknown network id for port (%(dpid)s %(port)s)'
 
 
+class MacAddressAlreadyExist(RyuException):
+    message = 'port (%(dpid)s, %(port)s) has already mac %(mac_address)s'
+
+
 class MacAddressDuplicated(RyuException):
     message = 'MAC address %(mac)s is duplicated'
+
+
+class RemoteDPIDAlreadyExist(RyuException):
+    message = ('port (%(dpid)s, %(port)s) has already '
+               'remote dpid %(remote_dpid)s')
+
+
+class TunnelKeyAlreadyExist(RyuException):
+    message = 'tunnel key %(tunnel_key)s already exists'
+
+
+class TunnelKeyNotFound(RyuException):
+    message = 'no tunnel key for network %(network_id)s'
-- 
1.7.1.1


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to