Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
- tapi-common
- context
- get-service-interface-point-details
- get-service-interface-point-list
- tapi-connectivity
- create-connectivity-service
- delete-connectivity-service
- get-connectivity-service-details
- get-connectivity-service-list
1) STC testing on a single ONOS instance
The first scenario is deployed on a single ONOS instance, whose version should be beyond 2.0.
1.1) ONOS instance setup and equipment setup
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# This scrip is used to test ODTN on single ONOS instance in branch 2.0 # Before this script: # 1. Make sure the default Python version is 2.x # 2. Run ONOS locally (bazel run onos-local -- clean) # 3. Start sshd service, and make sure "ssh $USER@localhost" operation doesn't need passwd # 4. Emulator configuration could be found under directory $HOME/emulator # env configuration based on the default ONOS environment # single ONOS instance runs on local machine directly export ONOS_ROOT="${ONOS_ROOT:-~/onos}" source ${ONOS_ROOT}/tools/dev/bash_profile source ${ONOS_ROOT}/tools/build/envDefaults unset OC2 unset OC3 export OC1="127.0.0.1" export OCI="$OC1" export ONOS_INSTANCES="$OC1" export ONOS_USER=$USER # make sure the installation directory, which would be used in command "onos-check-logs". export OV=`echo $ONOS_VERSION | sed "s/\.$USER/-SNAPSHOT/g" ` export ONOS_INSTLLINSTALL_DIR=/tmp/onos-${OV}/apache-karaf-${KARAF_VERSION}/data export EMULATOR_ROOT="${EMULATOR_ROOT:-$HOME/emulator}" # Check whether onos starts successfully. for t in {1..60}; do echo "$t-th times curl request" curl --fail -sS http://localhost:8181/onos/v1/applications --user "onos:rocks" 1>/dev/null 2>&1 && break; sleep 2 done |
After ONOS starts, the equipment should be ready for a connection. Here, we use the docker containers to simulate two Cassini emulators. The readers can also build their own emulators, which only need several configured Netconf servers for simplicity.
Code Block | ||
---|---|---|
| ||
# You should specify this emulator variable manually. export EMULATOR_ROOT="${EMULATOR_ROOT:-$HOME/emulator}" # run the emulators cd ${EMULATOR_ROOT} # The emulators run as docker containers. docker-compose up -d |
...