looking-glass icon indicating copy to clipboard operation
looking-glass copied to clipboard

Nokia-SROS

Open h4ndzdatm0ld opened this issue 5 years ago • 13 comments

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

h4ndzdatm0ld avatar Aug 18 '19 15:08 h4ndzdatm0ld

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.

gmazoyer avatar Aug 18 '19 17:08 gmazoyer

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

h4ndzdatm0ld avatar Oct 28 '19 12:10 h4ndzdatm0ld

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.

gmazoyer avatar Oct 28 '19 20:10 gmazoyer

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

  • ‘ping router 1000 8.8.8.8’
  • ‘traceroute router 1000 8.8.8.8’
  • ‘show router 100 bgp routes | match 8.8.8.8’
  • ‘show router 100 bgp routes aspath-regex xxx’

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

  • ‘show router 1000 bgp routes community 25899:999’

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

h4ndzdatm0ld avatar Oct 28 '19 20:10 h4ndzdatm0ld

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.

gmazoyer avatar Oct 28 '19 20:10 gmazoyer

Thanks! Looking forward to it.

h4ndzdatm0ld avatar Oct 28 '19 20:10 h4ndzdatm0ld

@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.

gmazoyer avatar Oct 31 '19 06:10 gmazoyer

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

h4ndzdatm0ld avatar Nov 07 '19 00:11 h4ndzdatm0ld

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.

gmazoyer avatar Nov 07 '19 08:11 gmazoyer

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 ?

h4ndzdatm0ld avatar Nov 21 '19 07:11 h4ndzdatm0ld

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

gmazoyer avatar Nov 26 '19 09:11 gmazoyer

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?

vitalisator avatar Mar 21 '20 20:03 vitalisator

Does your Looking Glass Support Nokia Routers?

If so, How do I Implement it?

banman24 avatar Feb 11 '21 01:02 banman24