Skip to content
Snippets Groups Projects
Commit 41b2089a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Debug OFC24 and Optical Controller

parent 2075841b
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!285Resolve: "(CNIT) New SBI Driver based on OpenROADM for ROADMs"
......@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import time
import logging, time
from flask import Flask
from flask import render_template
from flask_restplus import Resource, Api
......@@ -22,6 +22,8 @@ from opticalcontroller.tools import *
from opticalcontroller.variables import *
from opticalcontroller.RSA import RSA
logging.basicConfig(level=logging.INFO)
LOGGER = logging.getLogger(__name__)
global rsa
global links_dict
......@@ -355,6 +357,7 @@ class GetTopology(Resource):
print(rsa.init_link_slots2())
return "ok", 200
except Exception as e:
LOGGER.exception('Error in GetTopology')
print(f"err {e}")
return "Error", 400
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment