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 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.1.1


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to