Commit 41b2089a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Debug OFC24 and Optical Controller

parent 2075841b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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