From 3f88afa5a9b1c993101e8ce49a5745c7609cb0a9 Mon Sep 17 00:00:00 2001 From: Hong Hui Xiao Date: Mon, 19 Dec 2016 03:54:31 -0500 Subject: [PATCH] Add the missing AddressInUseException Commit fd904a6a656e338ece36f5353273bcb7220066ee uses an exception from kuryr lib. However, it missed to add the exception. Change-Id: I52507a547a5f20254e86a0b5cda9eb0b70617ead Closes-Bug: #1651062 --- kuryr/lib/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kuryr/lib/exceptions.py b/kuryr/lib/exceptions.py index 6224c8ab..60fbccd5 100644 --- a/kuryr/lib/exceptions.py +++ b/kuryr/lib/exceptions.py @@ -110,3 +110,11 @@ class SegmentationDriverBindingDriverCompatibilityFailure(KuryrException): This exception is thrown when configured binding driver does not have a supporting segmentation type driver. """ + + +class AddressInUseException(KuryrException): + """Exception represents the requested ip address is used. + + This exception is thrown when a specific address is requested and the + requested ip address already exists and is used. + """