Skip to content

Commit b17c1a1

Browse files
authored
Merge pull request #33 from open-traffic-generator/testdrive-fixes
Testdrive fixes
2 parents f7610e7 + 72cb7e1 commit b17c1a1

File tree

11 files changed

+40
-33
lines changed

11 files changed

+40
-33
lines changed

clab/ixia-c-te-frr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Follow this sections for a quick version of how to run the lab using `make`. Thi
1818
1. Clone this repository
1919

2020
```Shell
21-
git clone https://github.com/open-traffic-generator/otg-examples.git
21+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
2222
cd otg-examples/clab/ixia-c-te-frr
2323
```
2424

clab/rtbh/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Read a [blog post](https://blogs.keysight.com/blogs/tech/traf-gen.entry.html/202
1111
## Prerequisites
1212

1313
* Linux host or VM with sudo permissions and Docker support. See [some ready-to-use options below](#options-for-linux-vm-deployment-for-containerlab)
14-
* `git` - how to install depends on your Linux distro.
14+
* `git` and `build-essential` packages - how to install depends on your Linux distribution
1515
* [Docker](https://docs.docker.com/engine/install/)
1616
* [Containerlab](https://containerlab.dev/install/)
1717
* Access to the Linux host from your computer over TCP ports 22 (SSH), 8008 (DDoS Protect Dashboard) and 8080 (Graphite topology visualization)
@@ -21,7 +21,7 @@ Read a [blog post](https://blogs.keysight.com/blogs/tech/traf-gen.entry.html/202
2121
1. Clone this repository to the Linux host where you want to run the lab. Do this only once.
2222

2323
```Shell
24-
git clone --single-branch https://github.com/open-traffic-generator/otg-examples.git
24+
git clone --recursive --single-branch https://github.com/open-traffic-generator/otg-examples.git
2525
```
2626

2727
2. Navigate to the lab folder
@@ -107,7 +107,7 @@ sudo -E containerlab destroy -t topo.yml
107107
--tags=otg-demo
108108
109109
gcloud compute ssh otg-demo
110-
sudo apt update && sudo apt install docker.io -y
110+
sudo apt update && sudo apt install docker.io build-essential -y
111111
bash -c "$(curl -sL https://get.containerlab.dev)"
112112
```
113113

docker-compose/b2b-3pair/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install-docker-compose: /usr/local/bin/docker-compose
2323

2424
install-otgen: /usr/local/bin/otgen
2525
/usr/local/bin/otgen:
26-
curl -L "https://github.com/open-traffic-generator/otgen/releases/download/v0.3.0/otgen_0.3.0_$$(uname -s)_$$(uname -m).tar.gz" | tar xzv otgen
26+
curl -L "https://github.com/open-traffic-generator/otgen/releases/download/v0.4.0/otgen_0.4.0_$$(uname -s)_$$(uname -m).tar.gz" | tar xzv otgen
2727
sudo mv otgen /usr/local/bin/otgen
2828
sudo chmod +x /usr/local/bin/otgen
2929

@@ -39,10 +39,10 @@ install-clean:
3939
pull: pull-public pull-private
4040

4141
pull-public:
42-
docker-compose pull traffic_engine_1
42+
sudo -E docker-compose pull traffic_engine_1
4343

4444
pull-private:
45-
docker-compose pull controller
45+
sudo -E docker-compose pull controller
4646

4747
###############################
4848
# Deploy lab
@@ -90,7 +90,7 @@ deploy-lab:
9090
deploy: deploy-net deploy-lab
9191

9292
lab-clean:
93-
docker-compose down
93+
sudo docker-compose down
9494

9595
network-clean: veth0-clean veth2-clean veth4-clean
9696
veth0-clean:
@@ -112,13 +112,13 @@ veth4-clean:
112112
run: otgen-run otgen-run-display-table-port otgen-run-display-table-port otgen-run-display-table-flow-bytes
113113

114114
otgen-run:
115-
otgen run -k -f otg.3pairs.yml
115+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml
116116

117117
otgen-run-display-table-port:
118-
otgen run -k -f otg.3pairs.yml | otgen transform -m port | otgen display -m table
118+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml | otgen transform -m port | otgen display -m table
119119

120120
otgen-run-display-table-flow:
121-
otgen run -k -f otg.3pairs.yml | otgen transform -m flow | otgen display -m table
121+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml | otgen transform -m flow | otgen display -m table
122122

123123
otgen-run-display-table-flow-bytes:
124-
otgen run -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c bytes | otgen display -m table
124+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c bytes | otgen display -m table

docker-compose/b2b-3pair/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This lab is an extension of [Ixia-c back-to-back](README.md) traffic engine setu
4242
4. Clone this repository
4343

4444
```Shell
45-
git clone https://github.com/open-traffic-generator/otg-examples.git
45+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
4646
```
4747

4848
## Deploy lab
@@ -73,7 +73,7 @@ This lab is an extension of [Ixia-c back-to-back](README.md) traffic engine setu
7373

7474
```Shell
7575
cd otg-examples/docker-compose/b2b-3pair
76-
sudo docker-compose up -d
76+
sudo -E docker-compose up -d
7777
sudo ip link set veth0 mtu 9500
7878
sudo ip link set veth1 mtu 9500
7979
sudo ip link set veth2 mtu 9500
@@ -106,31 +106,31 @@ This lab is an extension of [Ixia-c back-to-back](README.md) traffic engine setu
106106
1. Start with using `otgen` to request Ixia-c to run traffic flows defined in `otg.3pairs.yml`. If successful, the result will come as OTG port metrics in JSON format
107107

108108
```Shell
109-
otgen run -k -f otg.3pairs.yml
109+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml
110110
```
111111

112112
2. You can now repeat this exercise, but transform output to a table
113113

114114
```Shell
115-
otgen run -k -f otg.3pairs.yml | otgen transform -m port | otgen display -m table
115+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml | otgen transform -m port | otgen display -m table
116116
```
117117

118118
3. The same, but with flow metrics
119119

120120
```Shell
121-
otgen run -k -f otg.3pairs.yml -m flow | otgen transform -m flow | otgen display -m table
121+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml -m flow | otgen transform -m flow | otgen display -m table
122122
```
123123

124124
4. The same, but with byte instead of frame count (only receive stats are reported)
125125

126126
```Shell
127-
otgen run -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c bytes | otgen display -m table
127+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c bytes | otgen display -m table
128128
```
129129

130130
5. Now report packet per second rate, as a line chart (end with `Ctrl-c`)
131131

132132
```Shell
133-
otgen run -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c pps | otgen display -m chart
133+
otgen run -a https://localhost:8443 -k -f otg.3pairs.yml -m flow | otgen transform -m flow -c pps | otgen display -m chart
134134
```
135135

136136
## Destroy the lab

docker-compose/b2b-3pair/compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
controller:
3-
image: ghcr.io/open-traffic-generator/licensed/ixia-c-controller:0.0.1-3423
4-
command: --accept-eula --http-port 443
3+
image: ghcr.io/open-traffic-generator/licensed/ixia-c-controller:0.0.1-3698
4+
command: --accept-eula --http-port 8443
55
network_mode: "host"
66
restart: always
77
traffic_engine_1:

docker-compose/b2b/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ deploy-lab:
6666
sudo docker-compose -f ixia-c-b2b.yml up -d
6767

6868
remove-lab:
69-
docker-compose -f ixia-c-b2b.yml down
69+
sudo docker-compose -f ixia-c-b2b.yml down
7070

7171
###############################
7272
# Run tests

docker-compose/b2b/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ This is a basic lab where [Ixia-c](https://github.com/open-traffic-generator/ixi
3939
fi
4040
```
4141

42+
4. Clone this repository (optional, only needed to use `make all` to run all the steps automatically)
43+
44+
```Shell
45+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
46+
cd otg-examples/docker-compose/b2b
47+
```
48+
4249
## Deploy Ixia-c lab
4350

4451
1. Create veth pair `veth0 - veth1`

docker-compose/cpdp-b2b/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ install-clean:
3232
pull: pull-public pull-private
3333

3434
pull-public:
35-
docker-compose pull traffic_engine_1
35+
sudo -E docker-compose pull traffic_engine_1
3636

3737
pull-private:
38-
docker-compose pull controller protocol_engine_1
38+
sudo -E docker-compose pull controller protocol_engine_1
3939

4040
###############################
4141
# Deploy lab
@@ -51,7 +51,7 @@ deploy-net:
5151
sudo ../../utils/connect_containers_veth.sh cpdp-b2b_traffic_engine_1_1 cpdp-b2b_traffic_engine_2_1 veth0 veth1
5252

5353
remove-lab:
54-
docker-compose down
54+
sudo docker-compose down
5555

5656
###############################
5757
# Run tests

docker-compose/cpdp-b2b/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This is an extended version of a basic [Ixia-c back-2-back lab](../b2b/README.md
3636
1. Clone this repository
3737

3838
```Shell
39-
git clone https://github.com/open-traffic-generator/otg-examples.git
39+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
4040
```
4141

4242
## Deploy Ixia-c lab
@@ -45,7 +45,7 @@ This is an extended version of a basic [Ixia-c back-2-back lab](../b2b/README.md
4545

4646
```Shell
4747
cd otg-examples/docker-compose/cpdp-b2b
48-
sudo docker-compose up -d
48+
sudo -E docker-compose up -d
4949
sudo docker ps
5050
```
5151

docker-compose/cpdp-frr/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ install-clean:
4747
pull: pull-private
4848

4949
pull-public:
50-
docker-compose pull traffic_engine_1
51-
docker-compose pull frr
50+
sudo -E docker-compose pull traffic_engine_1
51+
sudo -E docker-compose pull frr
5252

5353
pull-private:
54-
docker-compose pull controller protocol_engine_1
54+
sudo -E docker-compose pull controller protocol_engine_1
5555

5656
###############################
5757
# Deploy lab
@@ -71,7 +71,7 @@ deploy-clab:
7171
sudo containerlab deploy --reconfigure
7272

7373
remove-lab:
74-
docker-compose down
74+
sudo docker-compose down
7575

7676
remove-clab:
7777
sudo containerlab destroy --cleanup

docker-compose/cpdp-frr/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To request KENG to use ARP to determine destination MAC address for a flow `f1`,
7272
1. Clone this repository
7373

7474
```Shell
75-
git clone https://github.com/open-traffic-generator/otg-examples.git
75+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
7676
cd otg-examples/docker-compose/cpdp-frr
7777
```
7878

@@ -139,7 +139,7 @@ To request KENG to use ARP to determine destination MAC address for a flow `f1`,
139139
5. Clone this repository
140140

141141
```Shell
142-
git clone https://github.com/open-traffic-generator/otg-examples.git
142+
git clone --recursive https://github.com/open-traffic-generator/otg-examples.git
143143
```
144144

145145
## Docker Compose option to deploy the lab

0 commit comments

Comments
 (0)