X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO-plugin%2Fosm_ro_plugin%2Fsdn_failing.py;fp=RO-plugin%2Fosm_ro_plugin%2Fsdn_failing.py;h=8c373e6a1170102f5965c08fb4ad68925f2180ec;hp=fac28aa9ad3c33780f97e4ec7712a13271fe8c2d;hb=80135b928ab442c38898750b4751480205b4affc;hpb=e493e9b91720e5116e00b4c06cf66c767bccce2f diff --git a/RO-plugin/osm_ro_plugin/sdn_failing.py b/RO-plugin/osm_ro_plugin/sdn_failing.py index fac28aa9..8c373e6a 100644 --- a/RO-plugin/osm_ro_plugin/sdn_failing.py +++ b/RO-plugin/osm_ro_plugin/sdn_failing.py @@ -47,6 +47,7 @@ class SdnFailingConnector(object): This way we can make sure that all the other parts of the program will work but the user will have all the information available to fix the problem. """ + def __init__(self, error_msg): self.error_msg = error_msg @@ -57,26 +58,34 @@ class SdnFailingConnector(object): raise Exception(self.error_msg) def check_credentials(self): - raise SdnConnectorError('Impossible to use WIM:\n' + self.error_msg) + raise SdnConnectorError("Impossible to use WIM:\n" + self.error_msg) def get_connectivity_service_status(self, service_uuid, _conn_info=None): - raise SdnConnectorError('Impossible to retrieve status for {}: {}' - .format(service_uuid, self.error_msg)) + raise SdnConnectorError( + "Impossible to retrieve status for {}: {}".format( + service_uuid, self.error_msg + ) + ) def create_connectivity_service(self, service_uuid, *args, **kwargs): - raise SdnConnectorError('Impossible to create connectivity: {}' - .format(self.error_msg)) + raise SdnConnectorError( + "Impossible to create connectivity: {}".format(self.error_msg) + ) def delete_connectivity_service(self, service_uuid, _conn_info=None): - raise SdnConnectorError('Impossible to delete {}: {}' - .format(service_uuid, self.error_msg)) + raise SdnConnectorError( + "Impossible to delete {}: {}".format(service_uuid, self.error_msg) + ) def edit_connectivity_service(self, service_uuid, *args, **kwargs): - raise SdnConnectorError('Impossible to change connection {}: {}' - .format(service_uuid, self.error_msg)) + raise SdnConnectorError( + "Impossible to change connection {}: {}".format( + service_uuid, self.error_msg + ) + ) def clear_all_connectivity_services(self): - raise SdnConnectorError('Impossible to use WIM: {}'.format(self.error_msg)) + raise SdnConnectorError("Impossible to use WIM: {}".format(self.error_msg)) def get_all_active_connectivity_services(self): - raise SdnConnectorError('Impossible to use WIM: {}'.format(self.error_msg)) + raise SdnConnectorError("Impossible to use WIM: {}".format(self.error_msg))