diff --git a/gosdn.clab.yaml b/gosdn.clab.yaml index bc83b03ecaddef34def7aae758912dc56b5aa532..2971d6628a206bd04283281b28209173d49c54c8 100644 --- a/gosdn.clab.yaml +++ b/gosdn.clab.yaml @@ -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"] diff --git a/scripts/test-add-three-devices.sh b/scripts/test-add-three-devices.sh new file mode 100755 index 0000000000000000000000000000000000000000..54b7bbfeafb03a37cf45e04396cdeff35b507a5e --- /dev/null +++ b/scripts/test-add-three-devices.sh @@ -0,0 +1,11 @@ +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