Skip to content

Commit ea0f6b8

Browse files
2 parents c95802f + ca3502e commit ea0f6b8

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
tools
21
Network Automation Tools
32

3+
Disclaimer: code may need to be modified to according to environment. Free feel to contact me for any assistance - wailit@gmail.com
4+
45
This Python application is in progress but currently provides network automation of running configuration backups from common vendors.
56

67
The supported vendors include the following:
@@ -14,7 +15,7 @@ Simply create a text file and name it 'master_device_list' with the device infor
1415

1516
[ip_address],[hostname],[username],[password],[vendor],[type]
1617

17-
There are a total of 6 fields seperated by the delimiter comma ','.
18+
There are a total of 6 fields seperated by the delimiter comma ','. Do not leave any new lines between entries and end of file.
1819

1920
[ip_address] - ip address of the device; [hostname] - hostname of device; [username] - username to log into device; [password] - password to log into device (encrypted in base64 format); [vendor] - vendor name in small letters; current support vendors are, 'cisco','arista','juniper','brocade'; if other vendors are used, the application will still accept it but will create an unknown object type; [type] - type of device; 'router', 'switch', 'firewall', etc...
2021

@@ -26,6 +27,24 @@ Execute the application via 'python main.py'. Hit '1' to view the loaded device/
2627

2728
Configurations are backed up in the /configs/ directory.
2829

29-
More automation features to come...
30+
Switchport interface configuration has now been implemented. This feature allows you to store the configuration of switchports in a file (no limit) and easily mass deploy them via the multithread engine. It's a luxury feature for all environment especially for large scale networks. The application is intelligent enough to prevent any human error in overwriting any live ports in the environment; if the switchport status is 'up' or 'notconnected', configs will not be deployed on those port(s). When the switchport status is in a 'down' state, in other words - administratively down, only then will it be deemed safe and the configs be deployed.
31+
32+
Simply create a text file and name it whatever you wish with the device information populated like so:
33+
34+
[switch_ip],[interface],[mode],[vlan],[description],[state],[vendor],[type]
35+
36+
There are a total of 8 fields seperated by the delimiter comma ','. Do not leave any new lines between entries and end of file.
37+
38+
[switch_ip] - ip address of the device; [interface] - switchport interface you are configuring. you must type out the full interface name and not it's abbreviated form. for example, 'GigabitEthernet1/0/1' instead of 'Gi1/0/1'; [mode] - mode of switchport, either 'access' or 'trunk'; [vlan] - vlan number that you want the access port to be on. if it's configured as trunk, a single number will yeild a native vlan, if you want to trunk all vlans, set the value to 'all'; [description] - description of switchport; [state] - the state of the switchport you would like it to be in. 'up' or 'down'. [vendor] - current support vendors are, 'cisco','arista','juniper','brocade'; if other vendors are used, the application will still accept it but will create an unknown object type; [type] - type of device; 'router', 'switch', 'firewall', etc...
39+
40+
Here is an example:
41+
42+
10.20.30.40,GigabitEthernet1/0/1,access,50,CONNEX: THIS IS AN ACCESS PORT ON VLAN 50 WITH NO SHUTDOWN,up,cisco,switch
43+
44+
10.20.30.40,GigabitEthernet1/0/2,access,30,CONNEX: THIS IS AN ACCESS PORT ON VLAN 30 WITH SHUTDOWN,down,cisco,switch
45+
46+
10.20.30.40,GigabitEthernet1/0/23,trunk,all,CONNEX: THIS IS A TRUNK PORT TRUNKING ALL VLANS WITH NO SHUTDOWN,up,cisco,switch
47+
48+
10.20.30.40,GigabitEthernet1/0/24,trunk,80,CONNEX: THIS IS A TRUNK PORT WITH VLAN 80 AS NATIVE WITH SHUTDOWN,down,cisco,switch
3049

3150
Enjoy!

0 commit comments

Comments
 (0)