question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a ignore_privilege_level flag to the send_command(s|fromfile) methods of the network driver

See original GitHub issue

Adding an ignore_privilege_level boolean flag to driver.network.sync_driver.send_command, driver.network.sync_driver.send_commands, driver.network.sync_driver.send_commands_from_file, driver.network.async_driver.send_command, driver.network.async_driver.send_commands, and driver.network.async_driver.send_commands_from_file. This will allow the user to use whatever the current privilege level is on the device.

For more information view this discussion.

Use Case: As a developer, I want to be able to handle the privilege levels through the commands that I send instead of the standard Scrapli privilege management, so that at run time I can send arbitrary commands in different privilege levels.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tybrunocommented, Jun 25, 2021

Hey @carlmontanari!

Awesome suggestion! That is a much better design 😃. hahaha I always find it funny when looking at old code I write as well. I always find better ways I could have designed or implemented my code.

I’ll go ahead and submit a PR

Thanks Carl!!

Btw, at work I had someone send an email to 3 larger mailers discussing other Python libraries that handle device connections. I got a chance to advertise Scrapli and all its glory compared to other similar libraries 😉. I am really excited about the future of Scrapli.

0reactions
carlmontanaricommented, Jun 25, 2021

will close this so we can get thing sorted out in #138

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage - Scrapli - GitHub Pages
This allows for the user to send commands or do really anything that needs to happen prior to "normal" operations. The core network...
Read more >
Networking Error Messages - Oracle Help Center
Failed to open Navigator or Connection Manager error files when they have failed to start. Action: Check that a Network Error directory exists...
Read more >
NetworkDriver — NAPALM 3 documentation
This is a helper function used by the cli tool cl_napalm_show_tech. Drivers can override this method to do some tests, show information, enable...
Read more >
IBM Connect:Direct for UNIX: Documentation
Using Connect:Direct for UNIX with IBM Aspera High-Speed Add-on and Secure Proxy ... information record of the network map file: short-term and long-term....
Read more >
Apache Karaf Container 4.x - Documentation
feature:repo-add camel feature:install deployer camel-blueprint aries-blueprint cat ... It means that Apache Karaf minimal distribution requires an Internet ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found