Skip to content

Commit

Permalink
Update instructions and remove unnecessary #TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Jan 29, 2025
1 parent 85b12e7 commit 382e15b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
Binary file added GetStartedWithNetworkAutomation.pdf
Binary file not shown.
10 changes: 6 additions & 4 deletions internal-lab-setup-assets/images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ But... if you happen to have the Cisco XRd image from CCO, here are some notes.

2. Move it into the `images/` folder in this repository on your lab VM.

3. Load it into docker and tag it locally with `docker load -i xrd-control-plane-container-x64.dockerv1.tgz`
3. You may need to extract the image with something like `tar -xvzf xrd-control-plane-container-x86.7.11.1.tgz`

4. Note the image name in the output, probably something like "xrd-control-plane:7.11.1"
4. load it into docker and tag it locally with `docker load -i xrd-control-plane-container-x64.dockerv1.tgz`

5. Note the image name in the output, probably something like "xrd-control-plane:7.11.1"
```
$ sudo docker load -i xrd-control-plane-container-x64.dockerv1.tgz
826e1dd2a198: Loading layer [==================================================>] 1.32GB/1.32GB
Loaded image: ios-xr/xrd-control-plane:7.11.1
```

5. Update the workshop.clab.yml.j2 Jinja template at the top of this repository to use the image wherever you please. For instance, like so:
6. Update the workshop.clab.yml.j2 Jinja template at the top of this repository to use the image wherever you please. For instance, like so:
```
topology:
kinds:
cisco_xrd:
image: ios-xr/xrd-control-plane:7.11.1
```

6. You are ready to generate and load your lab!
7. You are ready to generate and load your lab!
2 changes: 1 addition & 1 deletion lab-1/1_netmiko_lldp_neighbors_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
password = "fill me in!" # TODO
device_type = "fill me in!" # TODO
hosts = ["x.x.x.x", "y.y.y.y", "z.z.z.z"] # TODO
command_to_run = "show lldp neighbors detail" # TODO
command_to_run = "show lldp neighbors detail"

for host in hosts:
# Create a variable that represents an SSH connection to our router.
Expand Down
8 changes: 5 additions & 3 deletions lab-1/2_netmiko_lldp_neighbors_textfsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
password = "fill me in!" # TODO
device_type = "fill me in!" # TODO
hosts = ["x.x.x.x", "y.y.y.y", "z.z.z.z"] # TODO
command_to_run = "show lldp neighbors detail" # TODO
command_to_run = "show lldp neighbors detail"

for host in hosts:
# Create a variable that represents an SSH connection to our router.
Expand All @@ -25,8 +25,10 @@
print(textfsm_output)
print("\n") # Add extra space between our outputs for each host

print(f"### This is the TextFSM output from {host}, but JSON-formatted to be prettier: ###")
print(
f"### This is the TextFSM output from {host}, but JSON-formatted to be prettier: ###"
)
print(json.dumps(textfsm_output, indent=4)) # indent for readability
print("\n") # Add extra space between our outputs for each host

connection.disconnect()
connection.disconnect()
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
password = "clab@123"
device_type = "cisco_xr"
hosts = ["172.16.x.2", "172.16.x.3", "172.16.x.4"] # TODO
command_to_run = "show lldp neighbors detail" # TODO
command_to_run = "show lldp neighbors detail"

for host in hosts:
### Here's the old stuff! ###
Expand Down Expand Up @@ -58,7 +58,7 @@
configuration = [
f"int {my_interface}",
f"description -> {neighbor_name}, {neighbor_interface}",
"commit"
"commit",
]

print(f"Before:{connection.send_command(f'show run int {my_interface}')}")
Expand Down

0 comments on commit 382e15b

Please sign in to comment.