Latest / Talk Python To Me / #175: Teaching Python to network engineers
Transcript
- 0:00Network engineering is quickly moving towards a world where it's as much programming and automation
- 0:04as it is packets and ports. Join Hank Preston and me to discuss what parts of Python are
- 0:09important for network engineers to learn. This is Talk Python To Me, episode 175, recorded August 8th, 2018.
- 0:16Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:36This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy. Keep up with the show and listen to past episodes at talkpython.fm
- 0:44and follow the show on Twitter via at talkpython. This episode is brought to you by Linode and Brilliant.org.
- 0:51Check out what they're offering during their segments. It really helps support the show.
- 0:55Hank, welcome to Talk Python. Thanks, Michael. Thanks for having me. Yeah, it's great to have you here.
- 1:00We're going to delve into a topic that I think is really interesting, and I think it highlights one of the reasons of this explosive growth in Python.
- 1:11We've had people writing web apps in Python for a long time, but now Python is starting to appear in these other domains where programming wasn't necessarily the first thing that people did.
- 1:21And we're going to talk about programming for network engineers.
- 1:23Excellent. It's a topic close to my heart because that's what I talk about most days these days.
- 1:28Yeah, that's awesome. So before we get to that, let's focus on your story and just talk about how you got into programming in Python.
- 1:36Where did it all start?
- 1:37Yeah, so it's good. So my story and my rapid love affair with Python started, I would say, I think it was about five years ago.
- 1:44And I was working at Cisco, which is where I currently am now, as a systems engineer and solutions architect focusing on data center topics.
- 1:51And around that same time, the cloud kind of tidal wave was hitting everybody.
- 1:57And so part of our role...
- 1:59What year was that?
- 2:00Yeah, I'd have to go back and look.
- 2:01I mean, somewhere in the 2012, 2013 area is where it kind of...
- 2:07It'd been there for a while, but that's where it started to affect my day-to-day job.
- 2:11Right. It kind of left the, hey, all the startups are doing it.
- 2:14But the Fortune 500, they're going to never touch the cloud ever, ever, right?
- 2:19Until they did.
- 2:20Yeah, no. And that's really what it was going through.
- 2:22At that point, the customers I was dealing with mostly were like the Fortune 500s, enterprise customers in the Midwest.
- 2:29And we were starting to hear from the likes of these large kind of Fortune 500 and Fortune 100 customers that they're starting to experiment.
- 2:37Or they've realized that they had been experimenting in the cloud for a long time.
- 2:41It's just nobody told them that they had stuff that was out there, which was always fun.
- 2:45So as this was going through, I had one of my managers came up and said, hey, we need to start understanding what this whole cloud thing is.
- 2:53We need to understand what application development is, what a cloud app is, and why it's so different, and how to talk to folks that are in here.
- 3:02And I had the opportunity to kind of go off and spend some time on a program that Cisco put together around cloud native development.
- 3:09And so it was kind of a boot camp approach to diving into a bunch of different topics.
- 3:13And it was from containers to cloud applications.
- 3:16And part of that program was actually two weeks of Python training.
- 3:21I credit Raymond Hedinger with giving me an awesome kind of exposure to Python, diving me in really well.
- 3:28His intensive introduction to Python class is the most aptly named technical class I've ever had.
- 3:34That's cool.
- 3:35Was this an in-person class?
- 3:36Did he come out to your equation?
- 3:38He did.
- 3:38So he actually, I don't know if he's still doing it today because I haven't looked in a while.
- 3:42But at that point, he was teaching Python every week for Cisco classes.
- 3:47And so he would teach a class in San Jose, and then he'd go down to Austin, and then he'd go to RTP.
- 3:53And he would just be teaching our developers inside of our business units, inside of our services organization, Python fundamental skills, because it was becoming so important to everything that was there.
- 4:03And so this was a class focused on our field engineers to go through and start to help us get prepped into it.
- 4:10And he actually had, his classes still exist.
- 4:14And I still see them go through the pieces occasionally.
- 4:16But it's like an intro, and then it was an intermediate, and then an advanced.
- 4:19And I swear, across those three weeks of training classes, it was like a year of intense college study to go through.
- 4:26Just the level of kind of depth that he took us and how quick we went in.
- 4:30That's really interesting.
- 4:30I feel like colleges, for some reason, when they teach programming, it goes incredibly slow compared to how fast you can actually learn it if you just put your head down, right?
- 4:40Absolutely.
- 4:41And that was the piece.
- 4:42And normally, many of us have been used to go into these training classes where you can go in and you can step out for a phone call, or you can go take a meeting halfway through, and you really don't miss anything.
- 4:52In this case, it was a very kind of, if you stepped out, you were like lost.
- 4:57It was like you lost a week of a college class.
- 4:59And so that's where I dove into Python.
- 5:01And I mean, within just a couple of days, I realized that programming was different from when I did it originally.
- 5:08Because I had a background in some development.
- 5:10I had done some Java and C++ and a bit of .NET development, some database work.
- 5:15And then I made a conscious decision to kind of go over and move more into the infrastructure space and focus on kind of systems and then eventually networking as kind of a specific domain.
- 5:24Frankly, because I wasn't a big fan of Java.
- 5:26And I got tired of developing in Java.
- 5:29So I gave up on that.
- 5:30But when I had this exposure to Python, it was such an easy language to get into.
- 5:34The syntax was really kind of readable.
- 5:37I didn't need to be a software developer.
- 5:40I could kind of dabble with it for a little bit and then come back.
- 5:42And I didn't feel like I lost anything.
- 5:44I could consume other people's code really easy.
- 5:47And it's a lot of those characteristics about Python, which is what's made it so successful in the network engineering, as well as kind of general infrastructure engineering space as kind of a language of choice.
- 5:57I think that's a really interesting point.
- 5:58And there have been a lot of languages that are easy to read, like VB is a language you could read pretty easy, right?
- 6:04Visual Basic.
- 6:05But a lot of the ones that are easy to start with have these pretty low ceilings.
- 6:10It's like, well, you can build up to this point, but you want to build something real.
- 6:14You put that away and you get out the Java, you get out the C++.
- 6:17And Python doesn't have really that ceiling quite nearly as low.
- 6:21And I think that's partly one of the things that makes it really special.
- 6:24Yeah.
- 6:24And that's been one of the huge elements for me.
- 6:27I mean, I've been doing Python daily for several years now going through.
- 6:32And I still go back to some of the fundamental skills that I learned in those early classes.
- 6:35But the programs I'm building are much more sophisticated than some of the early ones that go through.
- 6:40And when I look at some of the new features that come into the language, they're really exciting things that are coming after it.
- 6:46But they're being put in a way that you don't have to use those, right?
- 6:49It still gives you this ability to kind of work your way into Python, absorb the capabilities when it makes sense for you.
- 6:55And there's a challenge there.
- 6:56It's not like with JavaScript.
- 6:57It feels like you have to like immediately you're embedded inside of all sorts of promise statements and multiple levels of like embedded.
- 7:05And you can't do anything.
- 7:07With Python, you can start really simple.
- 7:10And then when the time calls for it, there's all of this other stuff that you can pull out and become very sophisticated as far as the language goes.
- 7:17Yeah.
- 7:17That's part of its sort of elasticity up and down the experience scale, right?
- 7:22You don't have, like you said, you don't have to be an expert in all of Python to build interesting things.
- 7:26Like you maybe don't even know what a function is, but you could still do some pretty interesting stuff in straight down.
- 7:32You know, you don't need to care about code reused or whatever, right?
- 7:35Yep.
- 7:36It's object oriented under the hood, but you can completely ignore objects.
- 7:39Until you realize that there's value in it.
- 7:42And hell, half my code still ignores objects, it seems like these days.
- 7:45Yeah, that's quite an interesting point.
- 7:47So speaking about these days, what are you doing day to day?
- 7:50You're a developer evangelist at Cisco, is that right?
- 7:52Correct.
- 7:52Dev evangelist.
- 7:53Yep.
- 7:53Yep.
- 7:54So I'm a network programmability evangelist with Cisco inside of our DevNet organization.
- 7:59So DevNet's the developer enablement program for Cisco.
- 8:02And so it's where people that are looking for our API documentation and SDKs and sample code and sandboxes and resources.
- 8:10That's all of that's available up on DevNet.
- 8:12And my team of evangelists are like you would find in any of the developer enablement programs.
- 8:18As we go out and we help people better make use of and understand what's possible with the tools.
- 8:23Cisco has a huge portfolio of products from networking to security and collaboration.
- 8:28I focus really, really fully in the network automation, network programmability space.
- 8:34And so there's tons to keep us busy and there's tons of work out there helping all of these enterprises and the network engineers inside of the enterprises figure out what automation means and how they can start to automate their deployments.
- 8:48And what does it take to skill up and make changes?
- 8:50And these are the types of things, resources we build, as well as kind of events that we hold and discussions we give.
- 8:57So you might be going out and visiting like a group of network engineers who maybe haven't done a lot of programmability automation of networks and you help sort of bring them along or maybe help them design how that applies to their infrastructure or something like that.
- 9:13Exactly.
- 9:13Yeah, there's there's I usually I frame it in two two cases where it goes through most days these days organizations are recognizing they need network automation.
- 9:22And so they're going to their networking teams and saying, OK, we need to figure this out.
- 9:25What resources are available?
- 9:26And so I can I go into some of those organizations and I'll spend a couple of days helping them and kind of leading introduction to programmability classes.
- 9:35And so just last week, I actually spent an entire day with one of my customers.
- 9:39We had about 20 engineers in the room and we were going through basics of Python.
- 9:44And so what is a Python script?
- 9:45How do you create variables?
- 9:47What are libraries and what libraries are interesting for the network engineer?
- 9:51How do you parse data that comes back?
- 9:53Because that's a big part of dealing with clear text versus JSON and all these other.
- 9:58Yeah.
- 9:59What is JSON?
- 10:00How do you process it?
- 10:01What is XML and what's a YAML file?
- 10:04All of that goes through.
- 10:05And that's a big part of this bringing Python into the network engineering field is network engineers have been in IT for years and many of them took comp sci classes way back when.
- 10:15And they may have done similar cases like I did.
- 10:17Didn't like Java a whole lot.
- 10:19And so went into networking.
- 10:20Program is not fun.
- 10:21I'm out of here.
- 10:22Yeah.
- 10:22Yeah.
- 10:22Enough of that.
- 10:23I'm going to go make packets go across the network.
- 10:25So what we're doing now is trying to help remind them kind of some of these skills that are there.
- 10:29They start to like knock the cobwebs off some of the fundamental programming stuff they had for maybe 20, 30 years ago when they went to school.
- 10:36And then start to add these new elements that are there.
- 10:39XML didn't exist for some of these guys when they went through it.
- 10:42And YAML certainly didn't.
- 10:43And so showing them the value.
- 10:44And so showing them the value, showing them how to use it, how to connect to a device through Python using one of these APIs that are available.
- 10:51And why is that better than doing it the way that they're doing it today?
- 10:55Because that's a big part of the discussion often is showing them that there is value in making this journey.
- 11:01Right. Because a lot of them probably didn't decide to be programmers.
- 11:04I mean, maybe that's a good way to segue into like what is the background of a typical network engineer?
- 11:10Like you said, maybe they have some programming experience, some technical experience, but they probably didn't choose networking because they wanted to be a programmer.
- 11:17So what's the story there?
- 11:19What do you experience?
- 11:20Yeah, they absolutely didn't choose networking because they wanted to be a programmer.
- 11:24In fact, one of the things I hear an awful lot when we start to have these discussions is in some cases they're coming kicking and screaming because they really don't want to be a programmer and they don't want to learn these new skills.
- 11:36And it's helping them recognize that just because you're going to do some automation, you're going to learn some Python, doesn't mean that you're now a software developer because these skills are becoming relevant to data scientists, to engineers, to everybody.
- 11:48And so there's this blurring and the gap.
- 11:51A typical network engineer has a foundation in kind of network theory and connectivity areas that are there.
- 11:58So there's the typical kind of OSA model of layer one, two, three, all the way up to seven.
- 12:03So they understand the fundamentals of how network traffic works.
- 12:07They spend their days dealing with networking concepts like IP space and ports and firewalls and load balancers.
- 12:15So all of these elements, these foundational elements that help make applications function that the cloud relies on to go through.
- 12:22The network engineer is coming in these discussions with this understanding of how kind of this foundation goes through.
- 12:28And despite the fact that in many cases they don't think that they've done a lot of automation or they've done a lot of programming or scripting in their previous life, let's say,
- 12:37many of them have because every network engineer I've ever known has been a problem solver and is always looking for ways to do things a little bit better.
- 12:45And so for the longest time, and in some cases still today, it's a CLI interface.
- 12:51A command line interface is how we configure a network.
- 12:53Maybe a bash script or something like that that'll like process, you know, like automate that in that sense, right?
- 12:59Exactly.
- 12:59There's there's expect scripting, right?
- 13:01So send this and expect to get this back and then send this other one away because there's network.
- 13:07Every network engineer I've known really hates having to repeat themselves over and over again.
- 13:11And so they've figured out ways to make their jobs better.
- 13:14And so that's the big thing I'm trying to show them is this move into using Python is actually going to make what they've done in the past simpler and actually a little bit more pleasurable because we can take away some of the challenges that were there.
- 13:26There is a bit of that, I don't want to say hurdle, but like a plateau to get people over.
- 13:29And that first aha moment, that's one of my favorite things to see when I'm working with somebody is when they get it.
- 13:35They understand the value.
- 13:37They understand that it's not this thing to be dreaded.
- 13:39Right.
- 13:39They're like, I don't want to do this.
- 13:40This is not my job.
- 13:41This is not what I signed up for.
- 13:42Wait a minute.
- 13:42That's pretty awesome.
- 13:43Yeah.
- 13:43Okay.
- 13:44Maybe it's worth it.
- 13:44Something like that, right?
- 13:45Exactly.
- 13:46Exactly.
- 13:46So you talked about getting into Python almost because of the cloud and things like that.
- 13:54It seems to me the cloud movement itself has probably dramatically changed what it means to be a network engineer in the first place, right?
- 14:05Like there used to be these physical things.
- 14:07You could log into them and mess with them.
- 14:09And now it's APIs and VMs and data centers far away from you.
- 14:14Yeah.
- 14:15It's completely accurate.
- 14:16I mean, it comes back on network engineers ourselves to some extent that it seemed that we got so far away from what a network really was.
- 14:23And we started to see a network as these physical routers and switches and firewalls that we touched rather than the act of connecting together the pieces that are there.
- 14:32And so I talk a lot.
- 14:34One of the conversations I give is this evolution to networking in the programmable age.
- 14:38And I go back in time to when the network really was just routers and switches and servers.
- 14:43Yeah.
- 14:44You refer to that as the four ages of networking.
- 14:46Do you want to take us through it?
- 14:47Yeah, exactly.
- 14:48And so originally, right, in what I often call kind of like the stone age of networking, things were simple.
- 14:56We had servers and workstations and printers, and they connected into switches, and then maybe we had a router to communicate with them.
- 15:02And the biggest thing network engineers were focused on is kind of like making sure that spanning tree didn't cause issues in the network and that if they were going to have to use some VLANs to carve computers and printers off.
- 15:13Because at that point, the network was you could walk into any closet and you could reach out and touch it.
- 15:18It was usually like teal green and had Cisco written on it, and that was the network.
- 15:23And there were cables, and it was really easy.
- 15:26But over time, the first hint of the kind of the changes to networking that I started to see, and many of us did, was virtualization, x86 virtualization with VMware and these other things.
- 15:36And the concept of a V switch came out.
- 15:39And it wasn't even that long ago, I would have heated discussions with networking and server teams about whose responsibility it was for the network inside of a hypervisor.
- 15:50Because the network guys didn't want to do it because it wasn't a physical switch, and the server guys had no idea what a VLAN was or what a tag was.
- 15:58And so there was this huge challenge that went through.
- 16:01And sadly, in many of those cases, the networking guys just stuck their head in the sand and said, you know what, I'm just going to let the server guys deal with it because it doesn't really matter.
- 16:11And then as we moved from kind of that stone age, that early piece that went in into the dot-com era and all of these other pieces, new things went after us.
- 16:20After x86 virtualization, we got blade switches.
- 16:24And so we had these new physical pieces.
- 16:26But rather than buying a blade switch from a networking vendor, maybe it's being bought from a server company.
- 16:33And so networking guys were once again saying, you know what, that's not my stuff.
- 16:37I'm not going to deal with it.
- 16:38And then what was it, two years ago, we started to see kind of the container explosion.
- 16:42And so now we've got networking inside of Linux servers that are behind virtual switches that are running embedded inside of a blade server someplace.
- 16:51And the networking guys are finally realizing that there is a lot of networking that is happening outside of their physical switches.
- 16:59And that's been a big kind of aha moment.
- 17:01And then we can bring in the cloud elements.
- 17:04Because when we talk about the cloud, if we're talking public cloud, in these cases, now we're sending workloads and resources up there.
- 17:11And we don't even have the luxury as a network engineer to know that at some point that traffic will go through my physical switch.
- 17:17Because you don't own those physical switches.
- 17:18Yeah, the one final bastion of thing they claimed is theirs has now been virtualized and moved out.
- 17:25And so now it's all the other stuff.
- 17:27They're like, well, that's not really my problem.
- 17:29Like, that's like what's left that they now need to work with, right?
- 17:32Exactly, exactly.
- 17:33And so as the evolution from virtualization to containers to cloud, and I love the fact that cloud is now starting to turn into this, rather than people thinking of the cloud as a place, like AWS is the cloud or Google or Azure or one of these other cloud providers.
- 17:51This idea of cloud is just kind of an approach, a fully programmable approach to infrastructure.
- 17:56And so I've got customers today that consider their data centers their cloud on that side as well.
- 18:01And they want to manage their clouds the same way that they consume and manage their other ones.
- 18:06This is with this huge pressure.
- 18:08Yeah, I think it is.
- 18:09And I think what's really interesting is, you know, there's this joke or, I don't know, sarcasm or whatever that says, you know, the cloud is really just somebody else's computer.
- 18:19Yeah.
- 18:19Right.
- 18:20Which I think that's a little bit disingenuous.
- 18:22Technically, it's true.
- 18:23Someone owns the computer.
- 18:24But I think fundamentally, the cloud is a programmable set of infrastructure that you don't have to go touch, right?
- 18:32And that programmability could be within your data center.
- 18:34It could be AWS.
- 18:35It could be somewhere else like Linode or something, right?
- 18:38It's the ability to write some code and servers and switches and networks come into existence, I think, in my mind, at least.
- 18:46Yeah, I think that's accurate.
- 18:48The idea that the cloud, you don't have to worry about the infrastructure is true if you're consuming cloud.
- 18:54But there's also this other group of engineers that are building clouds, right?
- 18:59Right.
- 18:59And somebody has to do that.
- 19:01And it's been interesting to watch the pendulum swing from 100% public cloud strategies to 100% hybrid cloud and then some people coming back to fully private cloud.
- 19:12If any part of an organization and enterprise strategy involves some element of private cloud, be that for data sovereignty or security or cost, because that does come up occasionally.
- 19:23Well, now the people that are writing and deploying apps want to consume the cloud inside of your data center the same way they did it in the public cloud.
- 19:32But now you have to have a team that can build the infrastructure that can offer that service.
- 19:38And that, I think, is the huge pressure.
- 19:39And that maybe means programming API, like creating APIs for them to consume and stuff like that, right?
- 19:45Exactly.
- 19:45It hasn't come up a lot, but I've had two cases specifically with enterprises where they had taken on, they had done some automation of their own.
- 19:53They were doing a lot of work in the networking space.
- 19:55But they were starting to get requests from application teams and systems and services teams to offer the network services through an API interface.
- 20:06And so they were starting to build an API that their application teams could consume and their operations teams could consume to make general connectivity or logging requests or information.
- 20:17And so we got to actually, it was a really fun project we did because we got to show, okay, well, let's talk about API design.
- 20:23How do you build an API?
- 20:24What makes an API good so that your developers who are used to consuming APIs from Google and Azure and all these other folks will be happy about consuming your API?
- 20:34All of a sudden you're put into the place where like you have to compete on API design with Google and Amazon, which, you know, just a while ago, maybe you were even really interested in writing APIs and you're kind of in the deep end at that point, right?
- 20:48Exactly.
- 20:49And those are the interesting pieces that are coming at it.
- 20:51And organizations are getting these changes and these adjustments so fast these days.
- 20:56And I think that's a big challenge that every industry has, but certainly the network engineers have.
- 21:02It's trying to figure out how do they keep up?
- 21:04How do they, it's, there's always that analogy of you're laying the track as the train is kind of approaching.
- 21:09And I think that that's never going to change in the IT space.
- 21:12And that's been a big struggle because for better or worse, the networking industry didn't have a lot of adjustments for several years, let's say decades in some cases.
- 21:21And this adjustment to cloud and programmability and automation is this massive pivot.
- 21:26And so now we've got a lot of engineers and network engineers out there just trying to figure out how do I keep up, right?
- 21:31What do I learn next?
- 21:32Where do I go through on this area?
- 21:34And that, that sense of overwhelming nature.
- 21:36And my, my advice to them is, okay, yes, there's a lot, but remember this is an exciting time, right?
- 21:42We were talking about how bored we were two years ago.
- 21:44Now you've got cool stuff to work with.
- 21:46Let's look at the value of what all of this new stuff has for us.
- 21:49This portion of Talk Python To Me is brought to you by Linode.
- 21:54Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 21:58Look past that bookstore and check out Linode at talkpython.fm/Linode.
- 22:03That's L-I-N-O-D-E.
- 22:05Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 22:10They have 10 data centers across the globe.
- 22:12So no matter where you are, there's a data center near you.
- 22:15Whether you want to run your Python web app, host a private Git server,
- 22:19or file server, you'll get native SSDs on all the machines,
- 22:23a newly upgraded 200 gigabit network, 24-7 friendly support,
- 22:27even on holidays, and a seven-day money-back guarantee.
- 22:30Do you need a little help with your infrastructure?
- 22:32They even offer professional services to help you get started with architecture,
- 22:37migrations, and more.
- 22:38Get a dedicated server for free for the next four months.
- 22:42Just visit talkpython.fm/Linode.
- 22:47Yeah, that's got to be interesting to be in that position.
- 22:50Because I feel like network engineers were fairly, they didn't feel the full pressure of all this stuff.
- 22:57Like the changes that we feel constantly in software development.
- 23:00Like, I mean, imagine you're a JavaScript developer.
- 23:03Like, you just learned one front-end framework.
- 23:05And it's like now ridiculous to use it.
- 23:08There's a new one, right?
- 23:08Yeah.
- 23:09That's like three weeks together.
- 23:10It's just constantly like that.
- 23:11Python's a little less bad.
- 23:13But this does sort of hit them, not out of the blue, but I think it's kind of a wave, a tidal wave type thing.
- 23:18I think also like sysadmins probably had a similar experience as well.
- 23:23I've seen it in the same, I mean, the installation, I think the farther you get from the end product, and the end product for most of these cases is some piece of software someplace.
- 23:33And so the farther you are from the end product, the longer it took for some of this pressure to kind of go through.
- 23:38Because software developers solved a lot of the things on their own, and then eventually it kind of overflowed into the systems teams.
- 23:45And so now the server teams had to figure out how to deal with the capacity and the agility.
- 23:50And then eventually that overwhelmed them to storage.
- 23:53And we're getting it into security now, security and networking now.
- 23:57And that's where this insulation is breaking down, because it was this like tidal wave that was just pushing and pushing and pushing.
- 24:03And eventually it just kind of knocked the wall over.
- 24:06And all this demand is coming at network engineers to be agile, to be secure, to offer segmentation, to be able to implement.
- 24:13We're getting requests for machine learning and artificial intelligence inside of the network now to make network decisions.
- 24:19And I'm still teaching Python 101 to folks.
- 24:22And they're also asking, well, where does blockchain fit in?
- 24:25It's all of these topics that are coming in at the same time, which is good and bad.
- 24:30Certainly keeps the job interesting.
- 24:31Yeah, you've got to have the right mindset.
- 24:33But it definitely sounds like a fun and exciting time.
- 24:36So that's some of the ways that automation and Python have sort of changed the role for network engineers.
- 24:43What else is changing for them?
- 24:45What else is Python sort of changing that I don't even know to ask about?
- 24:49Yeah, I mean, I think that's the interesting one that goes through.
- 24:51One of the impacts of using Python to automate your network is kind of all of the things that come along with that.
- 24:58Because now they are writing some code someplace.
- 25:01And so there's all these new strategies around kind of where do we put code?
- 25:05And so at the same time we're teaching Python, we're teaching source control strategies.
- 25:09Of course.
- 25:09We're showing folks how to deal with branches and how to use issue logs and pull requests to go through, which then gets to take us down kind of a pipeline path and go in.
- 25:20One of the interesting pieces that often comes quickly is how fast an engineer goes from thinking Python is going to be their answer and then reaching out to some other management tool like Ansible, which is written in Python.
- 25:33But they say, you know, I don't have to learn Python.
- 25:35I can just go learn Ansible and fix all these issues and I'll just go down that path.
- 25:39And that goes for a little while and then all of the challenges that potentially come out of that come through and then eventually they're back to, okay, maybe I do really need to understand the Python under the hood.
- 25:49I can't just kind of absorb some new open source tool to make everything better.
- 25:53Yeah, for sure.
- 25:54Of course, that whole software carpentry side of things has got to come in, right?
- 25:58Like as soon as you start to depend upon Python scripts to do your job, it's like, well, we should actually version control this and how do we share this together and how do we test it?
- 26:07And just, you know, all those layers just start to come crashing in.
- 26:10It's pretty interesting.
- 26:11I had a question came in to me over LinkedIn.
- 26:14It was two days ago and it was from a network engineer who I've been talking with for a while.
- 26:18And he's like, all right, here's the challenge we have is I've got people across my organization writing automation scripts to do really interesting things.
- 26:26And we've made a lot of progress, but now we've got islands of automation and everybody's automation looks different and nobody can use everybody else's automation.
- 26:34So how do we, how do we bring these things together?
- 26:37And so we started to talk about things like coding style guides, right?
- 26:41You have to come up with some, some approach and styles, not syntax, which means there's no right or wrong way.
- 26:47It's, it's kind of a consensus.
- 26:49Somebody has to say, this is how we do things.
- 26:52And then kind of making sure that people aren't porting their code and their scripts kind of on their machine and start to collaborate through repositories and go down that path.
- 27:02And, and that's an interesting piece that goes in.
- 27:04Moving network engineers away from the days where they, they would store their information in text files that were their version control was .v1, .v2, .v3.
- 27:13You really got to save it and zip it up.
- 27:16Yeah.
- 27:16Yeah.
- 27:16Yeah.
- 27:17And then teaching them just the magic that's offered and available inside using some sort of source control and version control system goes through.
- 27:25We spend probably just as much time trying to teach fundamentals of source control as fundamentals of Python and some of these early workshops, because that's what it takes to be successful in these areas.
- 27:36And having, having, having approached this myself and kind of stumbled my way through it, there's, there's things that I wish I would have started doing sooner that I'm trying to help network engineers today kind of learn from the mistakes that I made rather than having to go make the mistakes themselves.
- 27:50Yeah.
- 27:51Coming through this path, it sounds like many of them do.
- 27:54I'm sure they go through the experience of creating what you would think of as a script that does a very specific thing that you can run to.
- 28:04Well, there's actually this algorithm in here and these are the inputs of the algorithm.
- 28:08How do I turn this actually into say a library or a project someone else could consume?
- 28:13And how do we start to build these building blocks?
- 28:16I think that's probably an interesting transition as well.
- 28:19Yeah.
- 28:19It's interesting to go through.
- 28:20I mean, one of the, one of the strategies we use to try to break down the learning of automation and the value, the value prop that's there is, is we sit down and we say, okay, well, what are, what are like the five things that you spend almost every day doing?
- 28:33Or maybe we take a trouble ticket.
- 28:35What every trouble ticket comes through.
- 28:37Every organization usually has like, these are the information you need to gather before you ever start working on a trouble ticket.
- 28:43Well, let's, let's figure out how we can automate that.
- 28:46And then we break those up into these little pockets.
- 28:49And so maybe we've got a team of a dozen engineers and three of them work on step one, three of them work on step two, the rest of them that go through.
- 28:57And then the goal is by, is to show them how they can then consume everybody else's work and say, okay, well, we can pull in this other person's piece of code.
- 29:05And so you don't have to do that.
- 29:06And so you don't have to redo that yourself as long as you're kind of abiding by these kind of ideas of how these libraries work or inputs and outputs that go through it.
- 29:13You don't care.
- 29:15Like, it doesn't matter what happened inside of their function.
- 29:17You just know what you need to send it and what to expect to come back.
- 29:20And if we all agree on that, well, you saved yourself two hours worth of work.
- 29:24Every day.
- 29:25Yeah.
- 29:25Or something like that, right?
- 29:26Absolutely.
- 29:26Yeah.
- 29:27That's pretty awesome.
- 29:29So maybe now's a good time to talk about some of the major packages that people might use for in this programmability space.
- 29:36So, of course, probably a lot of these devices have direct APIs and you could, you know, create a JSON request and like send a post or something over.
- 29:45But it's probably better to use some higher level library, right?
- 29:48Yeah.
- 29:48So there's a bunch of them that go through.
- 29:50And so we've mentioned Ansible already.
- 29:52Ansible is written in Python.
- 29:53Most people just use it as a program rather than as a library.
- 29:57But we do have some folks writing Ansible modules to extend out the capabilities that are there.
- 30:03Right.
- 30:03Most of the time, programming Ansible is like constructing YAML files, right?
- 30:07Exactly.
- 30:08And until the module you need isn't there or it's not working exactly right.
- 30:13And so those go through.
- 30:14But for folks building kind of the raw Python and they want to go down that path, I always start with the fundamental toolkits, right?
- 30:22You mentioned the APIs.
- 30:24And so the key networking APIs today are basic REST fundamentals.
- 30:28And so REST APIs, we're going to consume them the same way that anybody else is using requests library is going to go through.
- 30:34So that's an early one we teach.
- 30:35Inside of the networking space, the long-lauded and also kind of disparaged API of SNMP still exists.
- 30:44And so occasionally we work with PI SNMP to work through and bring SNMP details in.
- 30:49But frankly, the newest interfaces, and these are new standards that were developed by the IETF for network programmability specifically, are netconf and restconf, which are model-driven programmability interfaces based on data models that are agreed upon and well understood.
- 31:06And then these interfaces return data either in XML and JSON.
- 31:10So now we're getting into kind of true programmability interfaces.
- 31:13And so the NC client library is what we use to communicate with netconf at their, with the netconf protocol.
- 31:20And then after we get kind of, let's say, the hammers, the screwdrivers, the nuts and bolts, kind of understanding those pieces, then we can step up to some of the libraries that have been developed to kind of consume those and offer an easier way to go through.
- 31:35And so in the netconf model-driven programmability space, there's actually an open source project called YDK.
- 31:41It's Yang Development Kit that was spearheaded, and most of the development actually comes out of Cisco, which aims to wrap up the data models in a Pythonic library so that you don't have to make native API calls.
- 31:54You can just work with them through a Pythonic library.
- 31:57Then there's the configuration management tooling that's out there.
- 32:00And so the good folks over at Spotify started out the Napalm project, which is all about multi-vendor kind of network configuration pushes.
- 32:08So that's a library that's often used by a lot of organizations trying to actually push out and maintain true configuration standards across.
- 32:16And then there's some newer ones that are popping up here and there, kind of as new challenges are being designed and extended out.
- 32:22Yeah, Napalm looks pretty interesting.
- 32:24I had David Barroso on episode 128 to talk about that.
- 32:28The idea is there that you have a unified API regardless of the underlying devices, right?
- 32:34So it kind of handles the inconsistencies across the different providers and such, right?
- 32:39Yeah, Napalm is one of a handful of libraries that aim to do that same thing.
- 32:44As many organizations and engineers have to deal with different network platforms from multiple vendors.
- 32:50Or even if you're just Cisco, we've got multiple platforms that are there.
- 32:53And so within Napalm, and then there's another tool called NetMiko that tries to kind of say, okay, let's have standard ways through Python to write the code.
- 33:01And then the libraries themselves understand the intricacies of interfacing with a specific platform or specific software version.
- 33:08And you can focus on kind of very consistent commands and capabilities.
- 33:13Yeah, I feel like the cloud is the new lock-in.
- 33:16If you're on AWS and you deeply use their APIs, it's extremely hard to move along, right?
- 33:23And same thing for Azure, right?
- 33:25They're all different APIs and they all have different capabilities.
- 33:28And I'm not thinking just VMs.
- 33:30I'm thinking like their cloud storage, their database offering, all these different things, right?
- 33:35I think that's why we see Microsoft just go, yeah, we don't actually care if he's Windows or not or Office because we got something better.
- 33:40Thanks.
- 33:41Well, I think that's the piece that goes through.
- 33:43I mean, everybody's always, there's this, the nasty term of lock-in.
- 33:47Nobody wants to be locked in.
- 33:48And I think the dirty secret is you're always locked into something.
- 33:52You just have to pick where you want your flexibility to be, what you're willing to be locked into.
- 33:57And then know that you've made a commitment there.
- 33:59I had an interesting conversation with one of the, a director of cloud and one of the customers I was talking through.
- 34:05And he said, look, we made, and this was an organization that had been around for a hundred years.
- 34:09We made the decision decades ago that we were going to go into the mainframe and we were locked into the mainframe and it served us well.
- 34:16And there were ups and downs, but, but that worked well for us.
- 34:18And at this point they were making the decision to lock themselves into a cloud provider because they knew if they jumped in and they took advantage of all of the,
- 34:27the value added services that the cloud provider had, and they embedded those into their applications, they knew full well, there was no way that they were going to be able to move without some significant cost.
- 34:37It was like when the days when they had to transition from a mainframe or Itanium onto x86, right?
- 34:43That was a big project.
- 34:44It was, it was a huge thing.
- 34:46There had to be some massive component event.
- 34:48The cloud is doing the same thing.
- 34:50Organizations that want to take advantage and accelerate their development by taking advantage of all of the services that AWS or Google or Azure offer.
- 34:58They do that hopefully knowingly at the price and at the cost.
- 35:02And with luck, the person that made that decision for the organization kind of had the right to make that decision for the organization.
- 35:08Yeah, that's an interesting point.
- 35:10But I definitely do see that as like, if you're willing to commit, you get full advantage of it, but you are committed.
- 35:17Yeah.
- 35:17Yeah.
- 35:17You're there.
- 35:18Yeah.
- 35:18But locking themselves into mainframes, that was a good idea for many years for a lot of these companies.
- 35:23Right.
- 35:23So it's just, that's a choice, but it is interesting, I think.
- 35:27This portion of Talk Python To Me is brought to you by Brilliant.org.
- 35:33Many of you have come to software development and data science through paths that did not include a full-on computer science or mathematic degree.
- 35:40Yet, in our technical field, you may find you need to learn exactly these topics.
- 35:45You could go back to university.
- 35:47But then again, this is the 21st century and we do have the internet.
- 35:51Why not take some engaging online courses to quickly get just the skills that you need?
- 35:55That's where Brilliant.org comes in.
- 35:57They believe that effective learning is active.
- 36:00So master the concepts you need by solving fun, challenging problems yourself.
- 36:05Get started today.
- 36:06Just visit talkpython.fm/brilliant and sign up for free.
- 36:10And don't wait either.
- 36:11If you decide to upgrade to a paid account for guided courses and more practice exercises,
- 36:16the first 200 people that sign up from Talk Python will get an extra 20% off an annual premium subscription.
- 36:22That's talkpython.fm/brilliant.
- 36:27So I guess the reason I bring that up is like Napalm having the ability to have this unified API kind of lessons that lock in just a little bit.
- 36:35And I think that's something that a lot of customers and engineers are looking at network programmability to give them that feature set to go through.
- 36:41And so it used to be that you were locked into a networking platform because that's what you built your automation around.
- 36:48Or that's what you knew how to configure.
- 36:50That was the tooling that you had.
- 36:51So today, if you say, okay, my lock-in choice is we're going to use Napalm.
- 36:56We're going to use Ansible.
- 36:57We're going to use Puppet or Solved or Cisco's NSO platform.
- 37:01One of these tools, that's going to be our point of interaction.
- 37:04As long as you work with those, then we're happy with it.
- 37:08And so that's the thing we're starting to see is organizations say, this is our tooling choice.
- 37:12How do you fit into this tooling choice as it goes through?
- 37:16Because they want the ability to kind of Lego block and swap in and out underneath the tooling choice because that's their entry point.
- 37:23That's really interesting.
- 37:23Another one that you brought out was Nornir.
- 37:27I'm not sure if I'm pronouncing that right.
- 37:29But that seems like a very Pythonic one.
- 37:31They're like, they're deeply embracing Python as the way.
- 37:34Do you want to talk about that a bit?
- 37:36Yeah.
- 37:36So I'm not super familiar with it.
- 37:38I'm just starting to learn it myself.
- 37:39And it's a new one that came through.
- 37:41David from Napalm, as well as Kirk Byers, who did the NET NICO program and some other pieces,
- 37:46have kind of joined forces to build up this new automation framework for Python.
- 37:51And it's very much designed to be a Pythonic mechanism to go.
- 37:56A lot of the stuff that it talks about is rather than working in some domain-specific language
- 38:01where you're limited by what that domain-specific language is capable of, what you're able to describe.
- 38:07With Nornir, the idea is we want to give people the full power of Python, right?
- 38:12Let's not rewrite programming.
- 38:14Let's not shackle what's possible.
- 38:16Let's say, here's how we'll go through.
- 38:18And Nornir is a library that goes in.
- 38:20And what's been interesting is we talked a little bit about the levels of abstraction
- 38:23and consumption.
- 38:24As I looked at Nornir, under the hood, it's leveraging tools like Napalm to actually do
- 38:30the interface configuration.
- 38:31And so it seems like we're getting these kind of rushing, nesting dolls of libraries.
- 38:36It's turtles all the way down.
- 38:38Yeah.
- 38:38You just pick up, okay, we're going to use this one.
- 38:41And then when you look under the hood and you do like a pip freeze, you realize all of
- 38:45the other things under the hood it's using.
- 38:47And this new fancy library is actually not doing all that much on its own, not to limit
- 38:52or minimize what these libraries do.
- 38:54But that's the idea.
- 38:56And I think one of the values that these offer is they're building on top of the foundation
- 39:00that's already been laid.
- 39:01And so we see that inside of all of these tools that go through.
- 39:05What I think is really interesting about Nornir is the fact that they have fully embraced
- 39:10Python.
- 39:10Because one of the comments we see kind of over and over, and you'll see the Twitter
- 39:15debates on these one, is don't use Ansible as a programming language.
- 39:19And then people are like, why not?
- 39:20I can program in it.
- 39:21It's not a big deal.
- 39:22It's like, but you can't really do it.
- 39:24And then there's the debates that go back and forth.
- 39:26And it seems like in the networking space, there is starting to see this push for some
- 39:30of the early adopters, the folks that have kind of got tons of battle scars from trying
- 39:35to do things in an interesting way, saying, you know what, we need to go back.
- 39:39We need to make sure that we've got more control over what's possible.
- 39:42Network engineers at our heart have always really enjoyed toying with nerd knobs, having
- 39:48access to all the features, understanding what's going on.
- 39:51And I think we're starting to kind of get that maturity level across areas of the industry
- 39:57to say, okay, we need to really, we need to dive into this a little bit hard, have a little
- 40:01bit more control, have a little bit more flexibility with what's there.
- 40:03Because despite the fact that they don't want to be locked into a platform, they also want
- 40:08to be able to do whatever they can with those platforms that they've chosen.
- 40:11And if you're limited by what you're allowed to do inside of your infrastructure, because
- 40:16some automation tool doesn't support it, well, that's now we have to extend our
- 40:21automation tool and make some other choice.
- 40:22Right.
- 40:23They highlight a lot of interesting, what they call benefits on the Nornio project, like
- 40:28a domain-specific language.
- 40:30A DSL can get complex when you've got to do advanced stuff.
- 40:33So avoiding the complexity of code might not be avoided anyway, right?
- 40:37Code is easier to debug.
- 40:39Like you can actually just set a breakpoint and debug it.
- 40:42You might write code anyway.
- 40:44You can leverage your IDE for linting.
- 40:47And I think the final one is like a pretty interesting that they list here.
- 40:51And it says a side benefit of using this is it'll also teach you Python, which you'll find
- 40:55to be a lot more useful than just knowing like a DSL.
- 40:58So for example, like you might learn Nornio, but now you know Python.
- 41:02And if you need to get another job, it's not, well, I can program Ansible.
- 41:05I can actually program full stop, right?
- 41:08Exactly.
- 41:08Exactly.
- 41:09And that's the piece that comes through.
- 41:11I'll have folks ask me, should I learn Python or should I learn Ansible to automate my network?
- 41:15And my answer to most folks is you need to learn both, probably.
- 41:18Ansible is a great tool.
- 41:20It's super popular in the network automation space today for a variety of reasons.
- 41:25And I don't see that popularity going away.
- 41:27But one of the things that comes up time and time again is engineers and enterprises will
- 41:33get to a point with a tool like Ansible and then figure out, okay, I can't go any farther.
- 41:39And it's one of the points that you call out is they need an advanced feature or they need
- 41:44some piece of logic element or they need to do something.
- 41:46And they just can't do it with a tool like Ansible that's there.
- 41:50And so now they're either writing their own Python code to consume it as Ansible or they
- 41:56revert back and they start doing something else with a tool like Napalm or Dornier as it goes in.
- 42:01And I think it's going to be this pendulum swing that goes back and forth.
- 42:05As we start a little bit with Python, we get frustrated because it seems like we're doing
- 42:09a lot of stuff that should be easier.
- 42:10You move to a higher level tool.
- 42:13You get frustrated because now you're limited with what you can do.
- 42:16But now you've learned a little bit more and you go back and forth.
- 42:19I think every organization and every engineer will find this sweet spot of what to consume
- 42:23and what to build yourself.
- 42:24Yeah.
- 42:24I don't think it's only going to get better, right?
- 42:26Like there's only more stuff on PyPI that you can pip install.
- 42:30Absolutely.
- 42:32Absolutely.
- 42:33I think last time I looked, it was like 147,000, but I haven't been counting for a few weeks.
- 42:38So it's probably even higher.
- 42:39It's insane.
- 42:40It's great.
- 42:40It's getting to the point now where you've got to be careful.
- 42:42The number of times the pluralization of a package has thrown me off where I swear I installed
- 42:47the package I wanted and then come to find out I, instead of installing requests, I installed
- 42:52request, which is a completely different library and works completely differently.
- 42:55What do you mean this function's not here?
- 42:57I know get is on request.
- 42:58No, that's plural.
- 43:00That's right.
- 43:00Yeah.
- 43:01Yeah.
- 43:01Those come up time and time again as it goes in.
- 43:03And I love the fact that anybody can build something and post it to PyPI.
- 43:08That's awesome.
- 43:09The barrier of entry is so low.
- 43:11I think that's what's part of what makes Python kind of Python.
- 43:14But there's also that piece that I have to remind folks is just because you can pip install
- 43:19something doesn't mean that you should necessarily trust it with what's going to go on.
- 43:23Do a little bit of research.
- 43:24Go figure out what's there.
- 43:26Is this a mature library?
- 43:27Are there other people using it?
- 43:29Is it maintained?
- 43:30And that's another skill set out of programming that network engineers need to start to learn
- 43:35is that it's very easy to grab something and not understand what it is.
- 43:40And the skill set of not just copying and pasting from Stack Overflow is one that we have to
- 43:44remind people over and over again.
- 43:45Yeah.
- 43:46That's a super interesting thing to evaluate an open source project, whether you want to
- 43:50take it as dependency, right?
- 43:52Because if you have a billion dollar company that depends upon this thing, but it's actually
- 43:57some freshman students' little project that they threw up there that has four stars on
- 44:03GitHub and they've since moved on to some other language and they don't even care about
- 44:07it anymore.
- 44:08Like that's a shaky foundation.
- 44:10Exactly.
- 44:11But you got to know to look, right?
- 44:12Audio bloop there for a second.
- 44:14The other piece that comes in that's very related to just like the reliability and the
- 44:18upkeep for it is the impact of open source licensing that goes in at some of these areas.
- 44:23We're starting to get more and more conversations with lawyers getting involved to say, okay,
- 44:28well, what is the impact of using that open source library?
- 44:31Is there something in there that says that they have a portion of our company now because
- 44:36we happen to use their library to configure our network?
- 44:38And those are interesting discussions that as we start to code and just use community delivered
- 44:44applications that I think it's not limited just to network engineers.
- 44:48But because we're new to the programmability space and we didn't cut our teeth through some
- 44:53of these other areas, I've seen several folks kind of be very surprised to find out like
- 44:58what the impact of some of these choices they've made has been.
- 45:02Yeah, it definitely can catch you off guard.
- 45:03So while we're talking about learning these new things and stuff you have to learn, maybe
- 45:08it's worth highlighting this project.
- 45:10I don't know.
- 45:10Would you call it a proper course that you created called Learn Network Programmability Basic?
- 45:14Yeah, it's a great one that goes through.
- 45:16And so the Network Programmability Basics video course was designed very specifically to help
- 45:22network engineers jumpstart into programmability and automation.
- 45:27The question we get more often than not is how do I get started?
- 45:30Because there's this overwhelming nature.
- 45:32There's so many topics that are out there.
- 45:34And so what I did inside the course was kind of say, okay, let's break down the basic fundamental
- 45:40information that you should know.
- 45:41So we talk about programming basics.
- 45:43So we go through some Python fundamentals.
- 45:45We go through what are APIs.
- 45:47We talk about those elements.
- 45:48And then we walk up the network structure tree, starting with device level APIs and then going
- 45:55into like SDN controllers and network controllers.
- 45:59We talk about capabilities around hosting applications at the edge, so some five computing pieces, and
- 46:05then even get our way into kind of this net DevOps space where we're starting to treat the
- 46:09network as code.
- 46:10And we're adopting things like configuration management strategies and CI/CD in the network.
- 46:15The Programmability Basics video course is definitely not designed to turn someone into an expert.
- 46:20My goal when I put it together was to give enough background knowledge, define enough terms, expose people to some concepts, and give them a chance to run code themselves against infrastructure, kind of in a controlled fashion.
- 46:34And so that they can, they're more prepared to take that next step.
- 46:37To say, okay, I've seen a little bit of Python.
- 46:39I know what these APIs are.
- 46:41I know what the library does.
- 46:42Now I'm a little bit more comfortable to go kind of do a little bit of Googling and research to take a class on Udemy or go grab something off of another area or sign up for another piece.
- 46:52And that's really the focus of the material we have there is to do that jumpstart.
- 46:57I like to joke, my goal is to speed people up somewhere in the two to four months range, right?
- 47:03Let's cut two months off of your journey to understanding network automation.
- 47:08If I can help you do that, I've been successful inside of that course.
- 47:12Yeah, that's really awesome.
- 47:12And I think one of the jobs of the most powerful courses is not to teach you all the way down through the stack of what they're doing, but to expose you to just enough of all the things so that you're like, I know there's this thing that solves my problem.
- 47:26And I know a little bit about it.
- 47:28And I now know where to go to look to learn it because it's almost like this paradox of choice or like this overabundance, right?
- 47:35There's not a scarcity of things you can use.
- 47:37It's there's so many things I could use.
- 47:39I don't even know where to start.
- 47:40And so having that like first step in the right direction for all these different things is really powerful.
- 47:45Exactly.
- 47:45And it's so easy to be overwhelmed in any topic today.
- 47:49I mean, the Internet just makes it ridiculous for how much information that goes through.
- 47:53And so that's been the purpose of the video course, as well as the other resources that we put together and we kind of curate up on DevNet to say, OK, let's give you let's give a network engineer.
- 48:02Let's give a collaboration engineer or a server engineer kind of a somewhat curated entry point so that we can start to define those terms and expose them to what the art of the possible.
- 48:12Right.
- 48:13I like to say my my job is an evangelist.
- 48:16The evangelism side of my job is to kind of show people what's possible, give them a glimpse of the future and get them excited for it.
- 48:22And so they're willing to invest more time and to go figure it out themselves and put the time.
- 48:26Yeah, I think that really sums it up perfectly.
- 48:28So I think maybe maybe we should leave it there for the networking.
- 48:32But I did want to ask you a question about PyCon because you're you're in Ohio and you were just at PyCon.
- 48:38It was in Cleveland this year, which is a great experience.
- 48:42I feel like a lot of people don't go to PyCon because they're like, oh, that's for the hardcore developers that only like maybe speak to the people who are somewhat in your space who feel like PyCon isn't for them.
- 48:54What was your experience there?
- 48:55I love my experience of PyCon.
- 48:56This was my first year going to PyCon.
- 48:58I'm looking forward to next year and going back.
- 49:01It's back in Cleveland again.
- 49:02So it's going to be super easy for me to get to.
- 49:03So I'll definitely be there.
- 49:04The organizers were super friendly.
- 49:07All of the presenters were amazing and going through.
- 49:10And that's one of the things I've really loved about the Python community in general.
- 49:14And it certainly showed at PyCon was the inclusive nature of where everybody's at.
- 49:19It doesn't matter if you have written a library that that 150,000 people are using on a daily basis.
- 49:26Or if you you've just written your first Hello World app, you will have a good time at a conference like PyCon.
- 49:33And then what was interesting for me from the network programmability perspective is I was just there kind of as an audience member.
- 49:39I was going through.
- 49:40I was attending talks.
- 49:41And then they had open spaces where people could anybody could sign up for a topic, grab a room, and then people could go talk about stuff.
- 49:47And I noticed that somebody signed up a Python for network automation open space.
- 49:51And I was like, wow, there's other people here doing this.
- 49:54And so I went and kind of sat through it and talked with a whole bunch of other people.
- 49:58And I was excited to see that there was probably 30 or 40 people there just at the open space part of it that were interested in using Python for network automation.
- 50:08And these range from engineers from companies like Facebook and Netflix and Amazon, all the way down to small mom and pop shops that are just using a little bit for their own automation, as well as students that are just interested in networking and trying to figure out a kind of where Python fits in.
- 50:24And so I encourage everybody, if you have the opportunity to go to Python, whether it's the big global one, a regional one, or even one of the regional conferences that we just had, PyOhio here in Ohio, go become part of the community.
- 50:38It's a wonderfully inclusive and welcoming community.
- 50:41And you'll meet some really good people.
- 50:42Yeah, that's great.
- 50:43I'm glad you brought up the open spaces because from the outside, the conference probably feels a lot like, well, there's these talks and the talks are on YouTube, so I don't really need to go.
- 50:51But I find the talks to be interesting and powerful, but actually, it's all the other stuff that makes it worth going.
- 50:56Like, it's really amazing.
- 50:58I think they called it the hallway track.
- 51:00You can't do the hallway track on YouTube after the event.
- 51:02You can only get that while you're there.
- 51:04Not unless you get a friend to stream it live or something.
- 51:06That'd be interesting.
- 51:08Yeah, actually, it would, wouldn't it?
- 51:10But like the open spaces are not recorded.
- 51:11And you don't have to have any particular skill to run an open space.
- 51:16You have to have the willingness to put it on the board and the willingness to kick off the topic.
- 51:21But you don't even have to lead it.
- 51:22You just have to say, I want a bunch of people who are interested in network programming to get together.
- 51:26And that's it.
- 51:27You could be like, I have no idea, but I wanted to talk to you all.
- 51:29So here we are.
- 51:30Yeah, yeah.
- 51:30Yeah, that's awesome.
- 51:31It's great to go through.
- 51:32So it's an awesome conference.
- 51:34So I encourage everybody to go.
- 51:35If you're on the fence, sign up.
- 51:36Yeah, I'm definitely looking forward to going.
- 51:38I'll get my ticket soon as it opens up.
- 51:40Exactly.
- 51:40All right.
- 51:41Well, I think we'll leave it there for the topics.
- 51:43So now we're down to the final two questions.
- 51:45If you're going to write some Python code, what editor do you use?
- 51:48Yes.
- 51:49So I go back and forth depending on what I'm writing.
- 51:51If I'm writing Python code and it's focused on kind of a sample or demo or just kind of proof of concept,
- 51:57I go pretty lightweight these days.
- 51:59And I use Adam because it opens quick.
- 52:02It has exactly what I'm after.
- 52:03And no more, no less.
- 52:05When I sit down to work on an actual Python project, there's a couple of libraries I work on.
- 52:10There's a couple of programs that I go through.
- 52:11I always go back to kind of the first editor that I fell in love with, which was PyCharm.
- 52:16And so I always find myself back into PyCharm.
- 52:18I love the integration capabilities that are there.
- 52:21I love being able to work just within the interface and go through.
- 52:24And so I bounce between the two of those depending on which project I'm working on at a given point in time.
- 52:27Yeah, that's cool.
- 52:28I do that with VS Code and the Python plugin and PyCharm, of course.
- 52:31So something really, really quick.
- 52:33I just want to open it up and look at it, probably throw it in VS Code.
- 52:36But otherwise, PyCharm as well.
- 52:37Nice.
- 52:38It seems like there's a big debate in my team.
- 52:41There's half of us that like Adam and the other half of us are big VS Code folks.
- 52:45And for me, it's one of those like, if I've got something that works for me, I'm perfectly happy to use it.
- 52:50I don't need to go explore other tools that are there.
- 52:52Yeah, sure.
- 52:53Well, you guys can at least now rest assured that they're owned by the same company.
- 52:57That is true.
- 52:57That is kind of funny.
- 52:58I'll be interested to see if they end up merging as products.
- 53:01I don't know if they will, but Nate Friedman, Nat Friedman, the guy who's going to be the CEO, maybe is the CEO of GitHub.
- 53:07Now, I don't know when he officially starts, but he came out and said, we're not dropping Adam.
- 53:12We're going to keep working on it.
- 53:13People love it.
- 53:13We're going to do these things at least in parallel now.
- 53:16That's good.
- 53:16Excellent.
- 53:17Yeah, good to hear, right?
- 53:18All right.
- 53:18Last question.
- 53:19Notable PyPI package.
- 53:20I'm going to call out NC Client for me.
- 53:23NC Client's the NetConf client for Python.
- 53:26And I go back to it time and time again for my automation these days.
- 53:30Because as much as I love the higher order packages that we talked about, like Napalm and Nornier, I'm still kind of at the tinker level.
- 53:37And I like being able to get right down into it.
- 53:39So that's always one that I go back to.
- 53:40Okay.
- 53:41That's awesome.
- 53:41All right.
- 53:42Well, Hank, thanks for being on the show.
- 53:44It's been really great to talk to you about all the stuff.
- 53:46And I think there's a lot of interesting lessons people can take away from learning how network engineers are moving into this programmability because so many different disciplines are.
- 53:55Absolutely.
- 53:56Absolutely.
- 53:57Well, thanks for having me, Michael.
- 53:58I appreciated the opportunity.
- 53:59Yeah.
- 53:59You bet.
- 53:59Talk to you later.
- 54:01This has been another episode of Talk Python To Me.
- 54:04Our guest on this episode has been Hank Preston.
- 54:06And it's been brought to you by Linode and Brilliant.org.
- 54:09Linode is bulletproof hosting for whatever you're building with Python.
- 54:13Get four months free at talkpython.fm/Linode.
- 54:17That's L-I-N-O-D-E.
- 54:19Brilliant.org wants to help you level up your math and science through fun, guided problem solving.
- 54:25Get started for free at talkpython.fm/brilliant.
- 54:29Want to level up your Python?
- 54:31If you're just getting started, try my Python jumpstart by building 10 apps or our brand new 100 days of code in Python.
- 54:38And if you're interested in more than one course, be sure to check out the Everything Bundle.
- 54:42It's like a subscription that never expires.
- 54:45Be sure to subscribe to the show.
- 54:46Open your favorite podcatcher and search for Python.
- 54:48We should be right at the top.
- 54:49You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 54:59This is your host, Michael Kennedy.
- 55:01Thanks so much for listening.
- 55:02I really appreciate it.
- 55:03Now get out there and write some Python code.
- 55:05I really appreciate it.
- 55:26Thank you.