atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
2 stars 3 forks source link

Better error message when connectivity is not possible #173

Open sajith opened 1 year ago

sajith commented 1 year ago

Inside connection handler, we ought to do something like this when connectivity is not possible between requested nodes:

    connectivity = temanager.requests_connectivity(traffic_matrix)
    if connectivity is False:
         return "Connectivity is not possible", 400

Would be nicer if we can return an error message with a little more detail (why connectivity is not possible, between which nodes, etc) and in JSON format.