Recent Posts

Python for Networks



Software-defined network (SDN)

Software-Defined Networking (SDN) is a network architecture approach that enables the network to be centrally controlled, or programmed, using software applications, in our case Python. This helps operators manage the entire network consistently regardless of different  network technology.

SDN lets network managers configure, manage, secure, and optimize network resources very quickly via automated SDN programs, which they can write themselves in Python 

 SDN simplifies network design and operation because instructions are provided by SDN controllers instead of multiple, vendor-specific devices and protocols.

We are going to explain certain basic data types and functions used for SDN to manage our network  using Python with examples



First download python from python.org website, version #3.


Use a python editor  called  pycharm (idle)  to get more familiar(instructions at the beginning of this blog) 

If statement






"And" and "Or" statement





Function Type

It's a list function


Len Function



IN functions



We can check certain items of the inventory in a specific order




Append Function

Append function ad value to the list

We can add to the original inventory

So far we have seen the following  different functions (len ,in, type )data types: boolean, integer, string and, integer

For loops function

Let's check  for loops



So, basically it condition applies until it reaches the end of the inventory. That means were are establishing a requirement

No check for specific items..



Input and append function

We could see that we could input based on new information we asked the user

The new value is added automatically and successfully


We see a lot of different ande useful functions of Python for networkers...I am pretty sure that once you have a hundred of switches and devices in your network , this function will be useful for you.
I hope you like this python introduction for networkers, and if you do, please click like.
😋

Thanks in advance!
Python for Networks Python for Networks Reviewed by ohhhvictor on May 18, 2019 Rating: 5

No comments:

Facebook

 photo imagen120.jpg
Theme images by 5ugarless. Powered by Blogger.