Skip to content

Commit

Permalink
Make some changes to create a larger merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Mar 8, 2024
1 parent 78fa218 commit 02709db
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ip_addresses.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
172.16.0.1/22
172.16.4.1/22
172.16.8.1/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.30.1.1/30
172.31.1.1/24
172.31.2.1/24
Expand Down
12 changes: 10 additions & 2 deletions netmiko_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"username": "juniper",
"password": "juniper123!",
}
rtr2 = {
"device_type": "juniper_junos",
"host": "rtr2.domain.com",
"username": "juniper",
"password": "juniper123!",
}

with ConnectHandler(**rtr1) as net_connect:
output = net_connect.send_command("show version")
for device in (rtr1, rtr2):
with ConnectHandler(**device) as net_connect:
output = net_connect.send_command("show version")
print(output)
6 changes: 3 additions & 3 deletions nornir.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
2 changes: 2 additions & 0 deletions sites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
- sfo1
- den1
- den2
- dal1
- dal2

0 comments on commit 02709db

Please sign in to comment.