MacAddressAlreadyExists and MacAddressNotFound

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

diff --git a/ryu/exception.py b/ryu/exception.py
index 0a1e72c..aa9597e 100644
--- a/ryu/exception.py
+++ b/ryu/exception.py
@@ -60,5 +60,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.10.4


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to