On Fri, Oct 12, 2012 at 09:01:02AM +0900, FUJITA Tomonori wrote:
> On Thu, 11 Oct 2012 17:17:19 +0900
> Isaku Yamahata <[email protected]> wrote:
> 
> > 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'
> 
> Do we need to add tunnel isolation specific Exceptions to the global
> exception file? IOW, every time we add a new application, the global
> exception file grows?

I'll move them into exception source.
-- 
yamahata

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