Goal of this little project was me to explore the amazing Textual library.
In this project, I'm building an app
in the terminal using Textual
to perform some basic networking related tasks. I've used Nornir
to do the underlying networking tasks.
As of now, net_tui
has the functions.
- To build a Dashboard with some system and routing protocol information.
- To look up a card in a given list of devices.
- To look up any pattern of configuration in a list of devices.
- To fetch the output of any command across a list of devices.
- To generate CLI commands as per the current running configuration on the device, with an option of terse and verbose levels.
For now, list of cards and commands used in function 2 and 4 respectively have been defined manually. May be in the future I can think of making this a bit more dynamic.
Note: This only works on Juniper devices.
net_tui.mp4
-
net-textorial by Danny Wade. Danny talks about his project on his Youtube Channel, highly recommend following him.
-
Textual has a very robust documentation, and they are always adding things to it to make it easier to explore.