Add ExportPortFailure exception

When creating security group rule failed, kuryr-libnetwork raise
an exception:
'module' object has no attribute 'ExportPortFailure'.
Meanwhile ExportPortFailure is missing in the imported module.

This patch add missing ExportPortFailure in kuryr-lib.

Change-Id: Ia5cbe785d3bdecf0981438aa850d9d9da3ab38c8
Closes-Bug: #1627911
This commit is contained in:
Dongcan Ye 2016-09-27 11:15:01 +08:00 committed by Dongcan Ye
parent d5e87557f1
commit 4ade0e23a6
1 changed files with 8 additions and 0 deletions

View File

@ -86,3 +86,11 @@ class VethDeletionFailure(KuryrException):
This exception is thrown when the veth pair is not deleted appropriately This exception is thrown when the veth pair is not deleted appropriately
and Kuryr can't proceed the unbinding further. and Kuryr can't proceed the unbinding further.
""" """
class ExportPortFailure(KuryrException):
"""Exception represents setting up exported port is failed.
This exception is thrown when performing Neutron security group failed
for an exported port and Kuryr can't proceed the expose further.
"""