Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sohanrai09 committed Aug 6, 2023
1 parent 3233d1e commit 3a54a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/posts/network-tui.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ This section has three sub-categories, each with an interesting function associa

### Generator

My inspiration to this section comes from my days at Network Ops where every other day I used to work on some maintenance activities and with this comes the crucial part of pre and post network validation. Since each device we work on can be different, we could not always have the same checks for validation. Generator solves this problem by generating a list of commands as per the protocols configured on the device. User also has an option to select if they would want `terse` or `verbose` level of commands and the commands are generated accordingly, with `terse` being the default. Commands for each protocols are pre defined in a `YAML` file and one can make any changes to it as per their business needs. Once the commands are generated, user can either copy it to a clipboard using `Copy to clipboard` button at the `Footer` of the App or by simply using `CTRL+C`. A pop-up notification is generated to confirm that commands are copied to the clipboard. But better yet, if the user wishes to run the commands and fetch the output from the device, they can use `Fetch output` or `CTRL+F`. The App would then connect to the device and execute the commands and store the output in a .txt file, which will be displayed to the user at the end.
My inspiration to this section comes from my days at Network Ops where every other day I used to work on some maintenance activities and with this comes the crucial part of pre and post network validation. Since each device we work on can be different, we could not always have the same checks for validation. Generator solves this problem by generating a list of commands as per the protocols configured on the device. User also has an option to select if they would want `terse` or `verbose` level of commands and the commands are generated accordingly, with `terse` being the default. Commands for each protocols are pre defined in a `YAML` file and one can make any changes to it as per their business needs. Once the commands are generated, user can either copy it to a clipboard using `Copy to clipboard` button at the `Footer` of the App or by simply pressing `c` in the keyboard. A pop-up notification is generated to confirm that commands are copied to the clipboard. But better yet, if the user wishes to run the commands and fetch the output from the device, they can use `Fetch output` or pressing `f`. The App would then connect to the device and execute the commands and store the output in a .txt file, which will be displayed to the user at the end.

![tui_gen_out1](/images/tui_gen_out1.png)

![tui_gen_out2](/images/tui_gen_out2.png)


I honestly think that this blog post, with the screenshots, doesn't do justice to the TUI App. Please check out the screen recording [here](https://github.com/sohanrai09/net_tui/assets/89385413/38decade-628d-4414-91ac-6b748ee37be4)
to truly appreciate the beauty of Textual. This probably is the simplest version of TUIs out there but hopefully it goes to show what's possible with [Textual](https://textual.textualize.io/). Folks at Textual are adding new and interesting features regularly which gives us users more options to play with to customize our TUI Apps. This project has been the most fun filled projects I have worked on and hopefully I've been able to capture and present that here. Please feel free to reach out to me in case you need any further clarifications, code repository can be found [here](https://github.com/sohanrai09/net_tui). Checkout another great Network TUI built by [Danny Wade](https://twitter.com/devnetdan?s=20) called [net-textorial](https://github.com/dannywade/net-textorial)
to truly appreciate the beauty of Textual. This probably is the simplest version of TUIs out there but hopefully it goes to show what's possible with [Textual](https://textual.textualize.io/). Folks at Textual are adding new and interesting features regularly which gives us users more options to play with to customize our TUI Apps. This project has been the most fun filled projects I have worked on and hopefully I've been able to capture and present that here. Please feel free to reach out to me in case you need any further clarifications, code repository can be found [here](https://github.com/sohanrai09/net_tui). Checkout another great Network TUI built by [Danny Wade](https://twitter.com/devnetdan?s=20) called [net-textorial](https://github.com/dannywade/net-textorial) and give him a follow as he is doing amazing things in the Network Automation field.

Thank you!

Expand Down

0 comments on commit 3a54a9b

Please sign in to comment.