Skip to content

Commit

Permalink
add lab inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed Nov 26, 2024
1 parent 9f15187 commit 203dd47
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 6 deletions.
19 changes: 17 additions & 2 deletions .cp/include/docs/lab-how-to-run.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,26 @@ To run the lab on your own machine, you can download all required files using th
`CVURL` (Optional) - URL to be used to access CVaaS. Default is `cv-staging.corp.arista.io`
{%- endif %}

When starting the lab on Github Codespaces, the required data can be provided via Web form if not yet associated with the repository. When running the lab on your own machine - set corresponding environment variables **BEFORE** :warning: opening VSCode.
When starting the lab on Github Codespaces, the required data can be provided via `Create codespace` form if not yet associated with the repository. When running the lab on your own machine - set corresponding environment variables **BEFORE** :warning: opening the VSCode.

???+ Tip "Wait until the lab is ready"

When lab container starts, the `postCreate.sh` takes care of cEOS-lab image download and making some last minute changes in the lab environment. After that, `make start` shortcut is executed to start the lab.
This requires a some time. :stopwatch: Please be patient. :coffee: :croissant:
Sometimes cEOS-lab image download may fail. For example, due to incorrect token. In that case `postCreate.sh` script will fail and the lab will not be started.
You can confirm if image was imported correctly with `docker image ls`.
You can confirm if image was imported correctly with `docker image ls`.

## Lab Inventory

This lab has following devices:

| Hostname | Type | OS | Management Address | Username | Password |
| -------- | ---- | -- | ------------------ | -------- | -------- |
{%- for node in lab_inventory %}
| {{ node.hostname }} | switch | cEOS-lab, {{ ceos_lab_version }} | {{ node.mgmt_ip }} | {{ clab_user }} | {{ clab_password }} |
{%- endfor %}
{%- for node in lab_host_inventory %}
| {{ node.hostname }} | host | cEOS-lab, {{ ceos_lab_version }} | {{ node.mgmt_ip }} | {{ clab_user }} | {{ clab_password }} |
{%- endfor %}

> To access any device, use `ssh <username>@<hostname>` or simply type `<hostname>` to use the SSH alias.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,26 @@ This lab is tested for:
Last reviewed: {{ '%d/%m/%Y' | strftime }}

> Lab Credentials
&nbsp;&nbsp;&nbsp;&nbsp;Username: {{ clab_user}}
&nbsp;&nbsp;&nbsp;&nbsp;Password: {{ clab_password}}
&nbsp;&nbsp;&nbsp;&nbsp;Username: {{ clab_user }}
&nbsp;&nbsp;&nbsp;&nbsp;Password: {{ clab_password }}

Please check the lab materials:

- [Lab Documentation](https://{% raw %}{{gh.org_name}}{%endraw%}.github.io/{% raw %}{{gh.repo_name}}{%endraw%}/{{ lab_slug }}/)
- [HTML Slides](https://{% raw %}{{gh.org_name}}{%endraw%}.github.io/{% raw %}{{gh.repo_name}}{%endraw%}/slides/{{ lab_slug }}.html)
- [PDF Slides](https://{% raw %}{{gh.org_name}}{%endraw%}.github.io/{% raw %}{{gh.repo_name}}{%endraw%}/pdfs/{{ lab_slug }}.pdf)

## Lab Inventory

This lab has following devices:

| Hostname | Type | OS | Management Address | Username | Password |
| -------- | ---- | -- | ------------------ | -------- | -------- |
{%- for node in lab_inventory %}
| {{ node.hostname }} | switch | cEOS-lab, {{ ceos_lab_version }} | {{ node.mgmt_ip }} | {{ clab_user }} | {{ clab_password }} |
{%- endfor %}
{%- for node in lab_host_inventory %}
| {{ node.hostname }} | host | cEOS-lab, {{ ceos_lab_version }} | {{ node.mgmt_ip }} | {{ clab_user }} | {{ clab_password }} |
{%- endfor %}

> To access any device, use `ssh <username>@<hostname>` or simply type `<hostname>` to use the SSH alias.
21 changes: 20 additions & 1 deletion docs/cvaas-cvaas-and-avd-demo--evpn-mlag.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ To run the lab on your own machine, you can download all required files using th
This lab requires following environment variables and secrets to be set.

`ARISTA_TOKEN` - the token required to download cEOS-lab image from [arista.com](https://arista.com).
`CV_API_TOKEN` - CVaaS service account token. It's required to generate onboarding token on CVaaS and allow streaming from the lab devices.
`CVURL` (Optional) - URL to be used to access CVaaS. Default is `cv-staging.corp.arista.io`

When starting the lab on Github Codespaces, the required data can be provided via Web form if not yet associated with the repository. When running the lab on your own machine - set corresponding environment variables **BEFORE** :warning: opening VSCode.
When starting the lab on Github Codespaces, the required data can be provided via `Create codespace` form if not yet associated with the repository. When running the lab on your own machine - set corresponding environment variables **BEFORE** :warning: opening the VSCode.

???+ Tip "Wait until the lab is ready"

Expand All @@ -40,6 +42,23 @@ To run the lab on your own machine, you can download all required files using th
Sometimes cEOS-lab image download may fail. For example, due to incorrect token. In that case `postCreate.sh` script will fail and the lab will not be started.
You can confirm if image was imported correctly with `docker image ls`.

## Lab Inventory

This lab has following devices:

| Hostname | Type | OS | Management Address | Login | Password |
| -------- | ---- | -- | ------------------ | ----- | -------- |
| s01 | switch | cEOS-lab, 4.32.3M | 10.0.1.1 | arista | arista |
| s02 | switch | cEOS-lab, 4.32.3M | 10.0.1.2 | arista | arista |
| l01 | switch | cEOS-lab, 4.32.3M | 10.0.2.1 | arista | arista |
| l02 | switch | cEOS-lab, 4.32.3M | 10.0.2.2 | arista | arista |
| l03 | switch | cEOS-lab, 4.32.3M | 10.0.2.3 | arista | arista |
| l04 | switch | cEOS-lab, 4.32.3M | 10.0.2.4 | arista | arista |
| h01 | host | cEOS-lab, 4.32.3M | 10.0.3.1 | arista | arista |
| h02 | host | cEOS-lab, 4.32.3M | 10.0.3.2 | arista | arista |

> To access any device, use `ssh <username>@<hostname>` or simply type `<hostname>` to use the SSH alias.
## Last Updated

!!! Info "Last reviewed: 26/11/2024"
Expand Down
19 changes: 18 additions & 1 deletion labs/cvaas-cvaas-and-avd-demo--evpn-mlag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This lab is tested for:
memory: 32 GB
storage: 64 GB

Last reviewed: 25/11/2024
Last reviewed: 26/11/2024

> Lab Credentials
&nbsp;&nbsp;&nbsp;&nbsp;Username: arista
Expand All @@ -20,3 +20,20 @@ Please check the lab materials:
- [Lab Documentation](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/cvaas-cvaas-and-avd-demo--evpn-mlag/)
- [HTML Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/cvaas-cvaas-and-avd-demo--evpn-mlag.html)
- [PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/cvaas-cvaas-and-avd-demo--evpn-mlag.pdf)

## Lab Inventory

This lab has following devices:

| Hostname | Type | OS | Management Address | Login | Password |
| -------- | ---- | -- | ------------------ | ----- | -------- |
| s01 | switch | cEOS-lab, 4.32.3M | 10.0.1.1 | arista | arista |
| s02 | switch | cEOS-lab, 4.32.3M | 10.0.1.2 | arista | arista |
| l01 | switch | cEOS-lab, 4.32.3M | 10.0.2.1 | arista | arista |
| l02 | switch | cEOS-lab, 4.32.3M | 10.0.2.2 | arista | arista |
| l03 | switch | cEOS-lab, 4.32.3M | 10.0.2.3 | arista | arista |
| l04 | switch | cEOS-lab, 4.32.3M | 10.0.2.4 | arista | arista |
| h01 | host | cEOS-lab, 4.32.3M | 10.0.3.1 | arista | arista |
| h02 | host | cEOS-lab, 4.32.3M | 10.0.3.2 | arista | arista |

> To access any device, use `ssh <username>@<hostname>` or simply type `<hostname>` to use the SSH alias.

0 comments on commit 203dd47

Please sign in to comment.