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
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel