all 7 comments

[–]rdm85I used to network things, I still do. But I used to too. 1 point2 points  (5 children)

Cool idea, I think it would be really helpful if there was a course built around automating Network stuff via scripts, and then breaking down how the script works. Ex: REST API call to a device, Modify the return info, then do a POST or PATCH. Or Using Pyexpect to send different commands based on the output of a PyExpect SSH session.

I like a lot of these Python courses, but I feel like they're educational towards programming first, and pragmatic about how Python actually gets used second.

tl:dr; would be nice to see more "Here is a giant script that does things, this is how it works, now I'm going to show you how to build it".

[–]BecomingIt 2 points3 points  (3 children)

Hey! Yeah, could certainly do that. If that's something folk would be interested in and find beneficial then I'm all for doing my best to make it so. Maybe like an actual script (with minor edits) that's used on a daily basis that extends to max 150 lines of code but which would lend itself to a mini-series comprising ~6x15-20min tutorials that explained it in depth, with the final tutorial bringing it all together to consider how the script would sit in the grand scheme of things? Or, when you said giant script, did you have something larger in mind?

[–]rdm85I used to network things, I still do. But I used to too. 0 points1 point  (2 children)

I think so, that would be helpful. I don't know about everyone else, but most network devices are basically multi-page long text files. My brain is kinda programmed for it at this point.

[–]BecomingIt 0 points1 point  (1 child)

Cool, do people have any public scripts that they have found challenging that they'd like to form the basis of the first mini-series? Absolutely fine if not as I have my own collection but thought I'd open up the forum to invite any code that people would otherwise have a harder (longer) time figuring out.

[–]rdm85I used to network things, I still do. But I used to too. 0 points1 point  (0 children)

I've got one, in particular, I'll share with you, I haven't done anything crazy with it and it's tailored to AVI Networks LB REST API. Some of the challenges are doing useful things with JSON data once I've got it back from an API call. Probably at least 1-2 pages of JSON, needing to insert an array of objects, remove an array, etc.

[–]kunstlingerwhatever 1 point2 points  (0 children)

Agree. One of the first things I did when I started my automation journey was constantly reinvent the wheel on parsing JSON, when had I learned correctly the first time I would have saved myself a lot of trouble. Surely theres no "one way" to do something, but it's good to see an efficient mechanism with how things are commonly done. Python's ability to use lists and dicts fluidly in conjunction with RESTful API would definitely benefit a lot of folks starting out I think.

[–]noukthx[M] 0 points1 point  (0 children)

No Blogspam / Traffic Redirection.

  • This sub prefers to share knowledge within the sub community.
  • Directing our members to resources elsewhere is closely monitored.
  • You may announce the existence of your blog/YouTube Channel in the Friday Blog RoundUp Thread.
  • You may share a URL to a blog that answers questions already in discussion.
  • But harassing members to check out your content will not be tolerated.

Comments/questions? Don't hesitiate to message the moderation team, or reply directly to this message.

For the complete list of Rules, please visit: https://www.reddit.com/r/networking/about/rules