gmazoyer / looking-glass

Easy to deploy Looking Glass
GNU General Public License v3.0
442 stars 137 forks source link

Nokia-SROS #86

Open h4ndzdatm0ld opened 5 years ago

h4ndzdatm0ld commented 5 years ago

Hi, Would love to work together and implement Nokia SROS to this looking glass.

gmazoyer commented 5 years ago

There are two ways include support for Nokia.

  1. Write add a class inside the routers/ directory describing how to interact with the device
  2. If you don't want to write some PHP, you can just provide the list of commands to ping, traceroute, show route and show route as-path-regex that have to be executed on the device.
h4ndzdatm0ld commented 4 years ago

Hello, I e-mailed you back a little while ago. Just checking in with you!

gmazoyer commented 4 years ago

I guess I did not see your email or it did not reach me. Could you re-send it to me or paste the content here if you prefer.

h4ndzdatm0ld commented 4 years ago

No Problem, If you are willing, here are the commands:

  1. ‘ping’
  2. ‘Traceroute’
  3. ‘show router bgp routes’
  4. ‘show router bgp routes aspath-regex’

Unlike Cisco, the ‘include’ command to filter, is ‘ | match’

If you want to work together in testing this that would be cool. What about VRF support? For example, All of our internet is inside VRF 100 – therefore, the commands would equal to

Also, is there any possibility of adding ‘community’ string searches? Say, for example –

The test environment has gotten good feedback, hopefully we can work together.

gmazoyer commented 4 years ago

I'll try to implement a basic wrapper and I'll let you know when it's ready to test it.

VRF support is currently tracked in #54 I don't know yet when the feature will land in this repository but I can tell you that it will be here at some point.

h4ndzdatm0ld commented 4 years ago

Thanks! Looking forward to it.

gmazoyer commented 4 years ago

@h4ndzdatm0ld can you test the master branch and give me some feedback about the first shot for the Nokia wrapper? Also if you can work on a documentation page to explain how to setup the Nokia router to use it with this looking glass like (docs/juniper.md) this would be great.

h4ndzdatm0ld commented 4 years ago

I am not getting any return output. What's the best way to debug SSH ?

gmazoyer commented 4 years ago

You can enable authentication debug log by setting $config['logs']['auth_debug'] = true; in the config.php file. Try looking at the auth logs in your router as well.

h4ndzdatm0ld commented 4 years ago

Verified the connection is established, but i'm just not getting any return output via the LG. Anyway we could maybe link up and I could set up a screen share ?

gmazoyer commented 4 years ago

We can discuss this off this issue on the slack channel to see how we can proceed.

vitalisator commented 4 years ago

Hi, did you reach some progress here? Just tested on my Nokia SR7750 an have same issue. I see user can login and logout but not any command is executed on the router. the debug logs say: [2020-03-21 20:42:48] [client: ::1] goe-0-bng-b > [BEGIN] ping count 10 8.8.8.8

[2020-03-21 20:42:49] [client: ::1] goe-0-bng-b > [END] ping count 10 8.8.8.8

Logs on the router say the same. login and after one second logout. no command executed. Is it possible that the command are fired too fast? Is there some way to debug the ssh communication?

banman24 commented 3 years ago

Does your Looking Glass Support Nokia Routers?

If so, How do I Implement it?