Skip to content
Snippets Groups Projects
Commit 2a591801 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

OFC'24 test:

- Reorganized descriptor files
- Reorganized node agent config files
- Reorganized old node agent deploy scripts
- Updated node agents deploy scripts
parent 10a2f3ff
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!223Resolve "Fix OFC'24 end-to-end test for Optical Controller component"
Showing
with 94 additions and 27 deletions
# OFC'24 - Test scenario
## Start Topology
Topology is composed of 2 transponders managed through OpenConfig and 2 Multi-granular ROAMDS
Strat the topology executing the following command:
```bash
sudo ./start_topo.sh
```
## Populate the TFS context and topology
Pushing the JSON files following the file indexes, i.e, 1, 2, 3, ...
The last JSON file with ID 7 is the service.
To check the service is onboarded successfully go into the TFS WebUI and check the `Service` tab.
## Check configuration in devices
Check if the devices are configured properly.
To check that, run, for each device (X={1, 2, 3, 4}):
```bash
screen -r tX
```
To release the terminal, press `Ctrl + A + D`
File moved
......@@ -17,8 +17,8 @@ TEST_NAME="ofc24"
echo
echo "Pre-deploy clean-up:"
echo "--------------------"
echo "Clean-up:"
echo "---------"
docker rm -f na-t1 na-t2 na-r1 na-r2
docker network rm na-br
......@@ -34,35 +34,33 @@ echo
echo "Create Management Network and Node Agents:"
echo "------------------------------------------"
docker network create -d bridge --subnet=172.254.253.0/24 --gateway=172.254.253.254 --ip-range=172.254.253.0/24 na-br
docker run -d --name na-t1 --network=na-br --ip 172.254.253.1 \
--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/platform_t1.xml:/confd/examples.confd/OC23/demoECOC21.xml" \
docker run -dit --init --name na-t1 --network=na-br --ip 172.254.253.101 \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/startNetconfAgent-tp.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/platform_t1.xml:/confd/examples.confd/OC23/platform.xml" \
asgamb1/oc23bgp.img:latest /confd/examples.confd/OC23/startNetconfAgent.sh
#--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/startNetconfAgent.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
docker run -d --name na-t2 --network=na-br --ip 172.254.253.2 \
--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/platform_t2.xml:/confd/examples.confd/OC23/demoECOC21.xml" \
docker run -dit --init --name na-t2 --network=na-br --ip 172.254.253.102 \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/startNetconfAgent-tp.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/platform_t2.xml:/confd/examples.confd/OC23/platform.xml" \
asgamb1/oc23bgp.img:latest /confd/examples.confd/OC23/startNetconfAgent.sh
#--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/startNetconfAgent.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
docker run -d --name na-r1 --network=na-br --ip 172.254.253.101 \
--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/platform_r1.xml:/confd/examples.confd/OC23/init_openconfig-platform.xml" \
docker run -dit --init --name na-r1 --network=na-br --ip 172.254.253.201 \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/startNetconfAgent-mg-on.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/platform_r1.xml:/confd/examples.confd/OC23/platform.xml" \
asgamb1/flexscale-node.img:latest /confd/examples.confd/OC23/startNetconfAgent.sh
#--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/startNetconfAgent.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
docker run -d --name na-r2 --network=na-br --ip 172.254.253.102 \
--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/platform_r2.xml:/confd/examples.confd/OC23/init_openconfig-platform.xml" \
docker run -dit --init --name na-r2 --network=na-br --ip 172.254.253.202 \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/startNetconfAgent-mg-on.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
--volume "$PWD/src/tests/${TEST_NAME}/node-agents-config/platform_r2.xml:/confd/examples.confd/OC23/platform.xml" \
asgamb1/flexscale-node.img:latest /confd/examples.confd/OC23/startNetconfAgent.sh
#--volume "$PWD/src/tests/${TEST_NAME}/tempOC/files/startNetconfAgent.sh:/confd/examples.confd/OC23/startNetconfAgent.sh" \
echo
echo "Waiting for initialization..."
echo "-----------------------------"
docker ps -a
sleep 5
docker ps -a
while ! docker logs na-t1 2>&1 | grep -q '*** ConfD OpenConfig NETCONF agent ***'; do sleep 1; done
while ! docker logs na-t2 2>&1 | grep -q '*** ConfD OpenConfig NETCONF agent ***'; do sleep 1; done
while ! docker logs na-r1 2>&1 | grep -q '*** ConfD OpenConfig NETCONF agent ***'; do sleep 1; done
while ! docker logs na-r2 2>&1 | grep -q '*** ConfD OpenConfig NETCONF agent ***'; do sleep 1; done
sleep 2
sleep 3
docker ps -a
......@@ -70,16 +68,10 @@ echo
echo "Dump Node Agent status:"
echo "-----------------------"
docker ps -a
#docker logs na-t1
#docker logs na-t2
#docker logs na-r1
#docker logs na-r2
docker logs na-t1
docker logs na-t2
docker logs na-r1
docker logs na-r2
#echo
#echo "Post-test clean-up:"
#echo "-------------------"
#docker rm -f na-t1 na-t2 na-r1 na-r2
#docker network rm na-br
echo "Done!"
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
echo
echo "Clean-up:"
echo "---------"
docker rm -f na-t1 na-t2 na-r1 na-r2
docker network rm na-br
echo "Done!"
#!/bin/bash
echo 'Cleaning...'
make clean
echo 'Rebuilding...'
make all
echo 'Initializing database...'
cp platform.xml confd-cdb/
echo 'Starting ConfD...'
make start2
echo 'ConfD Ready!!'
#!/bin/bash
echo 'Cleaning...'
make clean
echo 'Rebuilding...'
make all
echo 'Initializing database...'
cp platform.xml confd-cdb/
cp interfaces.xml confd-cdb/
cp bgp.xml confd-cdb/
echo 'Starting ConfD...'
make start2
echo 'ConfD Ready!!'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment