<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Automation on punt2cpu</title>
    <link>https://punt2cpu.net/categories/automation/</link>
    <description>Recent content in Automation on punt2cpu</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 25 Aug 2017 09:34:52 +0000</lastBuildDate>
    <atom:link href="https://punt2cpu.net/categories/automation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Creating the vlans using Python and Loops</title>
      <link>https://punt2cpu.net/2017/08/25/creating-the-vlans-using-python-and-loops/</link>
      <pubDate>Fri, 25 Aug 2017 09:34:52 +0000</pubDate>
      <guid>https://punt2cpu.net/2017/08/25/creating-the-vlans-using-python-and-loops/</guid>
      <description>&lt;p&gt;More efficient way of doing things with any programming language is using the loops.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://wiki.python.org/moin/ForLoop&#34;&gt;https://wiki.python.org/moin/ForLoop&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example of creating &lt;strong&gt;32&lt;/strong&gt; vlans on cisco switch :&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;vlans_loops&#34; loading=&#34;lazy&#34; src=&#34;https://punt2cpu.net/2017/08/25/creating-the-vlans-using-python-and-loops/vlans_loops.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;The code looks more readable and you can scale it now :)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Connecting to the Switch using Python</title>
      <link>https://punt2cpu.net/2017/08/24/connecting-to-the-switch-using-python/</link>
      <pubDate>Thu, 24 Aug 2017 08:19:46 +0000</pubDate>
      <guid>https://punt2cpu.net/2017/08/24/connecting-to-the-switch-using-python/</guid>
      <description>&lt;p&gt;Starting to figure it out how python syntax is working and how we can use internal libraries to connect to switches.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s take the telnetlib&lt;/p&gt;
&lt;p&gt;Here is a short example of connecting to switch and changing it&amp;rsquo;s hostname.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;telnet_connect&#34; loading=&#34;lazy&#34; src=&#34;https://punt2cpu.net/2017/08/24/connecting-to-the-switch-using-python/telnet_connect.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;Example of script was taken from &lt;strong&gt;telnetlib&lt;/strong&gt;: &lt;a href=&#34;https://docs.python.org/2/library/telnetlib.html&#34;&gt;https://docs.python.org/2/library/telnetlib.html &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Great free content to learn the Python and Networking automation&lt;/p&gt;
&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
			&lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/IhroIrV9_7w?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
		&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
