Skip to content

Commit

Permalink
Fixing larger merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Mar 8, 2024
2 parents 6616d85 + 02709db commit debafa8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ inventory:
plugin: SimpleInventory

runner:
plugin: threaded
options:
num_workers: 10
plugin: serial
# options:
# num_workers: 10

logging:
log_file: nornir.out
4 changes: 3 additions & 1 deletion ip_addresses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
172.16.4.1/22
172.16.8.1/22
172.16.8.2/22
172.16.12.1/22
172.18.0.1/22
172.18.4.1/22
172.18.8.1/22
172.19.0.1/21
172.19.8.1/21
172.19.16.1/21
172.29.1.1/24
172.30.1.1/30
172.31.1.1/24
Expand Down
14 changes: 11 additions & 3 deletions netmiko_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
"username": "juniper",
"password": "juniper123!",
}
rtr2 = {
"device_type": "juniper_junos",
"host": "rtr2.domain.com",
"username": "juniper",
"password": "juniper123!",
}

# Establish Netmiko Connection and execute simple 'show' command
with ConnectHandler(**rtr1) as net_connect:
output = net_connect.send_command("show version")
for device in (rtr1, rtr2):
# Establish Netmiko Connection and execute simple 'show' command
with ConnectHandler(**device) as net_connect:
output = net_connect.send_command("show version")
print(output)
8 changes: 8 additions & 0 deletions sites.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- lax1
- lax2
- sfo1
- den1
- den2
- dal1
- dal2

0 comments on commit debafa8

Please sign in to comment.