Loading src/opticalcontroller/OpticalController.py +4 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading @@ -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 Loading Loading
src/opticalcontroller/OpticalController.py +4 −1 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading @@ -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 Loading