vasya4k / gopcep

Implementation of PCEP and a TE Controller written in Go
MIT License
15 stars 4 forks source link

Add Routers #2

Open mabra94 opened 2 years ago

mabra94 commented 2 years ago

I tried to establish a PCEP Session but that was not successful. I assume I need to create the Router first, right? Is there another way to create a router besides the GUI? The GUI did not work for me. I was not able to save the router details.

Is it mandatory to create a Router first? Wouldn't it be better to just establish the PCEP session from the PCE client and the gopcep webui just displays the NEs which are connected?

I am quite interested in this project but I will need some upskilling in go programming before I could possibly contribute myself other than just commenting here.

vasya4k commented 2 years ago

The reason why you cannot save the routers details is that all the browsers will not work with self signed certificates. What you need to do is go to https://127.0.0.1:1443/v1/routers in you browser and click advanced then allow the insecure certificates. You of cause can create routers using just the API. You need to have the routers and all the settings added before GoPCEP accepts the incoming connections. Due to how all modern browsers work there is not way for me to work around this issue.

vasya4k commented 2 years ago

You can also try to fix this by chrome://flags/#allow-insecure-localhost if you are suing Chrome or Brave not sure if this setting exists for Firefox for Safari.

vasya4k commented 2 years ago

Updated the Readme as well

mabra94 commented 2 years ago

It is not about the self signed certs. I can access the GUI but the Form to add a router does not respond. Nothing happens when submitting the entered router details. I am using brave browser

vasya4k commented 2 years ago

Can you by any chance open the console in Brave and try saving the router again? to see the error in console or in the networking TAB?

mabra94 commented 2 years ago

Sorry for the delay. The below is what I see: image