Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Openvswitch devices to Aruba devices #36

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions containerlab/frinx_topo_1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It consists of MPLS core network, two regions with PE routers and connected CPE
Device types:
- Core, PE, and PTP GM routers: `vrnetlab/vr-sros:22.10.R7`
- CPE routers: `vrnetlab/vr-xrv:6.0.1`
- OLT and CMTS switches: `openvswitch`
- OLT and CMTS switches: `vrnetlab/vr-aoscx:10.12`

Configured protocols:
- LDP
Expand Down Expand Up @@ -44,6 +44,8 @@ for each configurable device in the topology:
| R2_CPE2 | 172.20.20.205 | 22 | 830 | |
| PTP_GM | 172.20.20.9 | 22 | 830 | 57400 |
| PTP_GM_BACKUP | 172.20.20.8 | 22 | 830 | 57400 |
| R1_OLT | 172.20.20.206 | 22 | | |
| R2_CMTS | 172.20.20.207 | 22 | | |

## Building required docker images

Expand Down Expand Up @@ -82,22 +84,24 @@ Requirements:

1. Copy 'iosxrv-k9-6.0.1.vmdk' file to the 'xrv' directory in the vrnetlab repository.
2. Build the docker image using `make docker-image` command.
Built docker image should have 'vr-xrv:6.0.1' tag.
Built docker image should have 'vrnetlab/vr-xrv:6.0.1' tag.

### vrnetlab/vr-aoscx:10.12

Requirements:

- arubaoscx-disk-image-genericx86-p4-10.12.vmdk image: Download the image from the Aruba support website.

1. Copy 'arubaoscx-disk-image-genericx86-p4-10.12.vmdk' file to the 'aoscx' directory in the vrnetlab repository.
2. Build the docker image using `make docker-image` command.
Built docker image should have 'vrnetlab/vr-aoscx:10.12' tag.

## Startup process

To start the topology, run the following commands:
To start the topology, run the following command:

```bash
# create openvswitch bridges
sudo ./openswitch1.sh

# deploy the containerlab topology
sudo containerlab deploy

# wait for the topology to start ...
# configure openvswitch ports
sudo ./openswitch2.sh
```

## Stopping the topology
Expand Down
2 changes: 1 addition & 1 deletion containerlab/frinx_topo_1/assets/demo_lab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions containerlab/frinx_topo_1/config_r1_olt.partial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
hostname R1-OLT
vlan 10
name Customer1
description Customer1 branch business network
vlan 20
name Customer2
description Customer2 branch business network
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10,20
interface 1/1/2
no shutdown
no routing
vlan access 10
interface 1/1/3
no shutdown
no routing
vlan access 20
exit
21 changes: 21 additions & 0 deletions containerlab/frinx_topo_1/config_r2_cmts.partial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
hostname R2-CMTS
vlan 10
name Customer1
description Customer1 branch business network
vlan 20
name Customer2
description Customer2 branch business network
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10,20
interface 1/1/2
no shutdown
no routing
vlan access 10
interface 1/1/3
no shutdown
no routing
vlan access 20
exit
32 changes: 20 additions & 12 deletions containerlab/frinx_topo_1/frinx_topo_1.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,23 @@ topology:
env:
RAM: 4096

# openvswitch for Region 1
# switch for Region 1
R1_OLT:
kind: ovs-bridge
kind: aruba_aoscx
image: vrnetlab/vr-aoscx:10.12
mgmt-ipv4: 172.20.20.206

# openvswitch for Region 2
startup-config: config_r1_olt.partial.txt
env:
RAM: 4096

# switch for Region 2
R2_CMTS:
kind: ovs-bridge
kind: aruba_aoscx
image: vrnetlab/vr-aoscx:10.12
mgmt-ipv4: 172.20.20.207
startup-config: config_r2_cmts.partial.txt
env:
RAM: 4096

links:
# Data center 1
Expand All @@ -96,20 +104,20 @@ topology:
- endpoints: [R1_PE1:eth2, C1:eth3]
- endpoints: [R1_PE2:eth2, C2:eth3]
- endpoints: [R1_PE1:eth1, R1_PE2:eth1]
- endpoints: [R1_PE2:eth3, R1_OLT:ovsp3]
- endpoints: [R1_PE2:eth3, R1_OLT:eth1]
# Region 2
- endpoints: [R2_PE1:eth2, C1:eth4]
- endpoints: [R2_PE2:eth2, C2:eth4]
- endpoints: [R2_PE1:eth1, R2_PE2:eth1]
- endpoints: [R2_PE1:eth3, R2_CMTS:ovsp6]
- endpoints: [R2_PE1:eth3, R2_CMTS:eth1]
# core routers
- endpoints: [C1:eth1, C2:eth1]
# PTP grandmaster to core routers
- endpoints: [PTP_GM:eth1, C1:eth5]
- endpoints: [PTP_GM_BACKUP:eth1, C2:eth5]

# openvswitch to Region 1 and 2
- endpoints: [R1_OLT:ovsp1, R1_CPE1:eth1]
- endpoints: [R1_OLT:ovsp2, R1_CPE2:eth1]
- endpoints: [R2_CMTS:ovsp4, R2_CPE1:eth1]
- endpoints: [R2_CMTS:ovsp5, R2_CPE2:eth1]
# switch to Region 1 and 2
- endpoints: [R1_OLT:eth2, R1_CPE1:eth1]
- endpoints: [R1_OLT:eth3, R1_CPE2:eth1]
- endpoints: [R2_CMTS:eth2, R2_CPE1:eth1]
- endpoints: [R2_CMTS:eth3, R2_CPE2:eth1]
9 changes: 0 additions & 9 deletions containerlab/frinx_topo_1/openswitch1.sh

This file was deleted.

63 changes: 0 additions & 63 deletions containerlab/frinx_topo_1/openswitch2.sh

This file was deleted.

Loading