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

Merge branch 'add-complex-clab-topology' into 'develop'

Add complex clab topology 1.0

See merge request !196
parents f9bc8eba ab5e5ac6
No related branches found
No related tags found
No related merge requests found
Pipeline #84337 failed
......@@ -42,7 +42,7 @@ variables:
containerlab:template:integration:
extends: .containerlab_template
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"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop')
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
......@@ -53,12 +53,18 @@ containerlab:deploy:integration:
extends: .containerlab_deploy
needs: ["containerlab:template:integration", "build-docker"]
script:
- cat ${CI_PROJECT_DIR}/${CLAB_NAME}.clab.yml
- sudo containerlab deploy --topo ${CI_PROJECT_DIR}/${CLAB_NAME}.clab.yml --reconfigure
- |
echo -e "\
GOSDN_HTTP_PORT=$(docker_host_port 8080 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
- cat ${CI_PROJECT_DIR}/build.env
artifacts:
......
# 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