Skip to content
Snippets Groups Projects
Commit a67167f3 authored by Neil Schark's avatar Neil Schark
Browse files

wip

parent cfac891c
No related branches found
No related tags found
3 merge requests!406Draft: Add backup script,!404Enable export and import of SDN configuration,!377Add Linux support to venv-manager
Pipeline #115997 failed
This commit is part of merge request !404. Comments created here will be created in the context of that merge request.
......@@ -20,98 +20,98 @@ topology:
mgmt_ipv4: 172.100.0.12
group: spine
centos1:
ubuntu1:
kind: linux
image: centos:8
image: registry.code.fbi.h-da.de/danet/containers/ubuntu:22.04
mgmt_ipv4: 172.100.0.3
group: server
centos2:
kind: linux
image: centos:8
mgmt_ipv4: 172.100.0.4
group: server
#centos2:
# kind: linux
# image: centos:8
# mgmt_ipv4: 172.100.0.4
# group: server
gosdn:
kind: linux
image: gosdn
ports:
- 55055:55055
- 8080:8080
- 40000:40000
cmd:
--config /gosdn/configs/containerlab-gosdn.toml
mgmt_ipv4: 172.100.0.5
#gosdn:
# kind: linux
# image: gosdn
# ports:
# - 55055:55055
# - 8080:8080
# - 40000:40000
# cmd:
# --config /gosdn/configs/containerlab-gosdn.toml
# mgmt_ipv4: 172.100.0.5
gnmi-target:
kind: linux
image: gnmi-target
ports:
- 7030:7030
mgmt_ipv4: 172.100.0.6
#gnmi-target:
# kind: linux
# image: gnmi-target
# ports:
# - 7030:7030
# mgmt_ipv4: 172.100.0.6
#
#csbi-orchestrator:
# kind: linux
# image: orchestrator
# ports:
# - 55056:55056
# - 9338:9338
# binds:
# - /var/run/docker.sock:/var/run/docker.sock
# - ./csbi/.csbi.yaml:/etc/.csbi.yml
# cmd: --log-level trace --config /etc/.csbi.yml
# mgmt_ipv4: 172.100.0.7
csbi-orchestrator:
kind: linux
image: orchestrator
ports:
- 55056:55056
- 9338:9338
binds:
- /var/run/docker.sock:/var/run/docker.sock
- ./csbi/.csbi.yaml:/etc/.csbi.yml
cmd: --log-level trace --config /etc/.csbi.yml
mgmt_ipv4: 172.100.0.7
grafana:
kind: linux
image: grafana/grafana:8.1.2
binds:
- ./csbi/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
ports:
- 3000:3000
mgmt_ipv4: 172.100.0.8
prometheus:
kind: linux
image: prom/prometheus:v2.29.1
ports:
- 9000:9090
binds:
- ./csbi/prometheus:/etc/prometheus
cmd: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
mgmt_ipv4: 172.100.0.9
mongodb:
kind: linux
image: mongo:5
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mgmt_ipv4: 172.100.0.13
mongodb-express:
kind: linux
image: mongo-express:0.54.0
ports:
- 8081:8081
env:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_SERVER: mongodb
mgmt_ipv4: 172.100.0.14
#grafana:
# kind: linux
# image: grafana/grafana:8.1.2
# binds:
# - ./csbi/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
# ports:
# - 3000:3000
# mgmt_ipv4: 172.100.0.8
rabbitmq:
kind: linux
image: rabbitmq:3-management
ports:
- 127.0.0.1:5672:5672
- 127.0.0.1:15672:15672
mgmt_ipv4: 172.100.0.15
#prometheus:
# kind: linux
# image: prom/prometheus:v2.29.1
# ports:
# - 9000:9090
# binds:
# - ./csbi/prometheus:/etc/prometheus
# cmd: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
# mgmt_ipv4: 172.100.0.9
#
#mongodb:
# kind: linux
# image: mongo:5
# ports:
# - 27017:27017
# env:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: example
# mgmt_ipv4: 172.100.0.13
#
#mongodb-express:
# kind: linux
# image: mongo-express:0.54.0
# ports:
# - 8081:8081
# env:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: example
# ME_CONFIG_MONGODB_SERVER: mongodb
# mgmt_ipv4: 172.100.0.14
#
#rabbitmq:
# kind: linux
# image: rabbitmq:3-management
# ports:
# - 127.0.0.1:5672:5672
# - 127.0.0.1:15672:15672
# mgmt_ipv4: 172.100.0.15
links:
- endpoints: ["ceos0:eth1","ceos1a:eth1"]
- endpoints: ["ceos0:eth2","centos1:eth1"]
- endpoints: ["ceos1a:eth2","centos2:eth1"]
- endpoints: ["ceos0:eth2","ubuntu1:eth1"]
- endpoints: ["ceos1a:eth2","ubuntu1:eth2"]
if [ $# -eq 0 ]
then
echo 'you need to provide the password for the admin user'
exit 1
fi
./artifacts/gosdnc login --controller 127.0.0.1:55055 --u admin --p $1
./artifacts/gosdnc pnd use 5f20f34b-cbd0-4511-9ddc-c50cf6a3b49d
./artifacts/gosdnc device create -a 172.100.0.11:6030 -u admin -p admin --name="ceos0"
./artifacts/gosdnc device create -a 172.100.0.12:6030 -u admin -p admin --name="ceos1a"
./artifacts/gosdnc device create -a 172.100.0.3:7030 -u admin -p admin --name="ubuntu1"
./artifacts/gosdnc device list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment