Skip to content
Snippets Groups Projects
Commit ddd2ab03 authored by Felix Ohms's avatar Felix Ohms
Browse files

Add complex clab topology 1.0

parent a72c82fc
No related branches found
No related tags found
7 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!196Add complex clab topology 1.0,!138Develop
...@@ -42,7 +42,7 @@ variables: ...@@ -42,7 +42,7 @@ variables:
containerlab:template:integration: containerlab:template:integration:
extends: .containerlab_template extends: .containerlab_template
variables: variables:
CLAB_TEMPLATE: "${CI_PROJECT_DIR}/test/containerlab/int01.clab.tmpl.yml" CLAB_TEMPLATE: "${CI_PROJECT_DIR}/test/containerlab/complex-1.0.clab.tmpl.yml"
containerlab:deploy:integration: containerlab:deploy:integration:
...@@ -54,7 +54,12 @@ containerlab:deploy:integration: ...@@ -54,7 +54,12 @@ containerlab:deploy:integration:
echo -e "\ echo -e "\
GOSDN_HTTP_PORT=$(docker_host_port 8080 clab-${CLAB_NAME}-gosdn)\n\ GOSDN_HTTP_PORT=$(docker_host_port 8080 clab-${CLAB_NAME}-gosdn)\n\
GOSDN_GRPC_PORT=$(docker_host_port 55055 clab-${CLAB_NAME}-gosdn)\n\ GOSDN_GRPC_PORT=$(docker_host_port 55055 clab-${CLAB_NAME}-gosdn)\n\
CEOS1_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos1)" \ CEOS1_1_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos1-1)\n\
CEOS1_2_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos1-2)\n\
CEOS2_1_1_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos2-1-1)\n\
CEOS2_1_2_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos2-1-2)\n\
CEOS2_2_1_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos2-2-1)\n\
CEOS2_2_2_PORT=$(docker_host_port 6030 clab-${CLAB_NAME}-ceos2-2-2)" \
> ${CI_PROJECT_DIR}/build.env > ${CI_PROJECT_DIR}/build.env
- cat ${CI_PROJECT_DIR}/build.env - cat ${CI_PROJECT_DIR}/build.env
artifacts: artifacts:
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
variables: variables:
GOSDN_LOG: "nolog" GOSDN_LOG: "nolog"
GOSDN_TEST_API_ENDPOINT: "141.100.70.178:${GOSDN_GRPC_PORT}" GOSDN_TEST_API_ENDPOINT: "141.100.70.178:${GOSDN_GRPC_PORT}"
GOSDN_TEST_ENDPOINT: "141.100.70.178:${CEOS1_PORT}" GOSDN_TEST_ENDPOINT: "141.100.70.178:${CEOS1_1_PORT}"
GOSDN_TEST_USER: "admin" GOSDN_TEST_USER: "admin"
GOSDN_TEST_PASSWORD: "admin" GOSDN_TEST_PASSWORD: "admin"
......
# topology documentation: http://containerlab.srlinux.dev/lab-examples/srl-ceos/
name: @@CLAB_NAME@@
mgmt:
network: @@CLAB_NAME@@
ipv4_subnet: @@CLAB_MGMT_SUBNET@@
topology:
nodes:
gosdn:
kind: linux
image: @@GOSDN_CONTAINER_IMAGE@@
ports:
- 0:8080
- 0:55055
ceos1-1:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
ceos1-2:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
ceos2-1-1:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
ceos2-1-2:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
ceos2-2-1:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
ceos2-2-2:
kind: ceos
image: @@CEOS_CONTAINER_IMAGE@@
ports:
- 0:6030
server3-1-1:
kind: linux
image: alpine:latest
server3-1-2:
kind: linux
image: alpine:latest
server3-1-3:
kind: linux
image: alpine:latest
server3-2-1:
kind: linux
image: alpine:latest
server3-2-2:
kind: linux
image: alpine:latest
links:
- endpoints: ["ceos1-1:eth1", "ceos2-1-1:eth1"]
- endpoints: ["ceos1-1:eth2", "ceos2-1-2:eth1"]
- endpoints: ["ceos1-1:eth3", "ceos2-2-1:eth1"]
- endpoints: ["ceos1-1:eth4", "ceos2-2-2:eth1"]
- endpoints: ["ceos1-2:eth1", "ceos2-1-1:eth2"]
- endpoints: ["ceos1-2:eth2", "ceos2-1-2:eth2"]
- endpoints: ["ceos1-2:eth3", "ceos2-2-1:eth2"]
- endpoints: ["ceos1-2:eth4", "ceos2-2-2:eth2"]
- endpoints: ["ceos2-1-1:eth3", "server3-1-1:eth1"]
- endpoints: ["ceos2-1-1:eth4", "server3-1-2:eth1"]
- endpoints: ["ceos2-1-2:eth3", "server3-1-2:eth2"]
- endpoints: ["ceos2-1-2:eth4", "server3-1-3:eth1"]
- endpoints: ["ceos2-2-1:eth3", "server3-2-1:eth1"]
- endpoints: ["ceos2-2-1:eth4", "server3-2-2:eth1"]
- endpoints: ["ceos2-2-2:eth3d", "server3-2-1:eth2"]
- endpoints: ["ceos2-2-2:eth4", "server3-2-2:eth2"]
test/containerlab/complex-1.0.png

78.4 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment