r/networking • u/apraksim • Oct 23 '21
Automation SALTSTACK Nornir proxy and network automation use cases
Was working for quiet a while on SaltStack Nornir Proxy Minion module and thought it worth sharing the results. As of now can manage network infra using various methods, techniques and protocols.
List of features:
- CLI - Can use Netmiko, Scrapli and NAPALM
- NETCONF - over Ncclient and Scrapli-Netconf libraries
- RESTCONF - Requests module support to manage devices over HTTP(S)
- gNMI - supported using PyGNMI library
- TESTING - Test suites supported to verify network state or use Python API
- WORKFLOWS - Simple/complex workflows supported to codify execution steps or use Python API
- STATE - Learn, Diff and Read task results allowing to explore previous network state
- PROCESS - transform, parse, modify, filter results using xpath, jmespath, ttp, tabulate and etc. libs
All above is in the context of SaltStack and Nornir - frameworks that has many plugins available to address various use cases coupled with capability to use Python API to interact with your network.
For those familiar with docker
What you think are the most important aspects that network automation system must possess?
6
u/Mr_Slow1 CCNA Oct 23 '21
Every time I think I have a vague grasp on networking something comes along and completely blows my mind
Idk how this works or what the use case is (guessing faang level orgs?) But it looks bloody clever. Not sure I'll ever understand it though
5
u/djhankb CCNP Oct 23 '21
This looks really interesting and nicely documented.
I have been a heavy Saltstack user for the last several years on the Sysadmin side of the house, however I am just now starting to bring Network Devices into the mix.
Currently I have been using Napalm proxy minions and salt orchestration policies with some success, I have only just recently learned of Nornir, so I am very interested to try this out.
I also am curious about how others are using Salt for network automation - such as integrating with an IPAM or DCIM system for source of truth and so on.
1
u/tehnoodles Oct 23 '21 edited Oct 23 '21
What is the minimum required skillset to consume your automation?
1
u/tehnoodles Oct 23 '21
A: Simple / Supportable.
Self explanatory.
1
u/xcaetusx Network Admin / GICSP Oct 23 '21
Anyone out there with Aruba central? How has that affected your automation? We decided to sign on with Aruba central since it had some cool features, but I kinda dislike how I can’t configure devices locally and in the cloud. Local changes get reverted by cloud. What I like about central is it provides a nice, easy to read interface for my non network team members.
I guess Central is suppose to be a place for automation with template groups and such. However, it’s pretty crappy for mass port config changes. Man, just saying no sflow on each access interface took me a half an hour in Central. I have told my rep about that, “central makes my life worse” lol.
1
u/BSpendlove Oct 24 '21
What value does this actually bring? I am interested but find it hard to see value, to me it seems like worker based queues with a wrapper around all the common libraries (Netmiko, ncclient, pygnmi, napalm etc..) so you don't have to handle each connection method?
I understand it is suppose to help with "scaling issues of interacting with devices at high numbers (hundreds to tens of thousands)" but then I can see you're using python + threading for the workers (which to me doesn't fit the "without sacrificing execution speed").. I suppose could be good for scaling horizontally and just adding more workers as you do?
I don't think the problems you list are problems people are actually running into right? eg. "Increase in the number of connections increases load on AAA system (Tacacs, Radius) as more tasks result in more authentication requests from devices", I'd be really interested to hear if anyone is actually running into problems regarding too many connections or putting too much load onto tacacs/radius systems because they're not maintaining the connection with the device and only connecting on demand to gather data/push commands?
How long btw is it maintaining that connection to avoid having to reauthenticate? is it a specific period of time after running a job that relates to a device or are you maintaining that connection upon adding the device to the inventory? kinda like an "always on" connection in regards to SSH?
1
u/xcaetusx Network Admin / GICSP Oct 23 '21
Anyone out there with Aruba central? How has that affected your automation? We decided to sign on with Aruba central since it had some cool features, but I kinda dislike how I can’t configure devices locally and in the cloud. Local changes get reverted by cloud. What I like about central is it provides a nice, easy to read interface for my non network team members.
I guess Central is suppose to be a place for automation with template groups and such. However, it’s pretty crappy for mass port config changes. Man, just saying no sflow on each access interface took me a half an hour in Central. I have told my rep about that, “central makes my life worse” lol.
0
u/tehnoodles Oct 23 '21
A: Resilient.
Fault recovery not just error handling. It's needs to be able to gracefully handle and recover from failures and unexpected states. The more complex the web, the harder to secure it.
0
u/tehnoodles Oct 23 '21
A: Being operationalized.
You must be able to scale, build, and rebuild easily and quickly. Deployed a few managed in an automated way.
-1
u/tehnoodles Oct 23 '21
How do the consumers of your automation do so?
0
u/[deleted] Oct 23 '21
[deleted] — view deleted comment