Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Now clone these repositories in the correct place and switch to valid branches:

cd /data/dev
git clone
git clone
cd opennsa
git checkout domainaggregate
cd ../testopennsa
git checkout develop

Now we need to clone these repositories:

cd /data/dev
git clone ssh://git@code.geant.net:7999/ccs/opennsa.git opennsa
git clone ssh://git@code.geant.net:7999/ccs/onsa-tests.git testopennsa
cd opennsa
git checkout domainaggregate
cd ../onsa-testtestopennsa
git checkout develop
Next, we need to provide PostgreSQL some credentials (passwords). You do not want to have to enter the password every time you start the database! So create a file ~/.pgpass, and give it the following content:
# ~/.pgpass
# hostname:port:database:username:password
10.50.0.100:5432:*:opennsa:secretpassword
localhost:5432:*:opennsa:secretpassword

...

This Docker setup simulates a simple three nodes, one aggregator setup.
![Network drawing](nwlayout.png)##

Sample usage

...

Suppose we want to create a connection between node11 and node12, and we are a user in domain1 with access to nsi1.
We are going to use onsa tool to reserve and provision this connection.

The complete command sequence will be:
```bash

$ $TESTOPENNSA/docker/intradomain/setup init

$ $OPENNSA/onsa reserve \
    -p domain1:nsa \
    -u http://10.50.0.2:9445/NSI/services/CS2 \
    --source node11.domain1:topology:port1?vlan=123 \
    --dest node12.domain1:topology:port2?vlan=123
    
$ $OPENNSA/onsa provision \
    -p domain1:nsa \
    -u http://10.50.0.2:9445/NSI/services/CS2 \
    -c DO-015774acaa

$ $OPENNSA/onsa queryrec \
    -p domain1:nsa \
    -u http://10.50.0.2:9445/NSI/services/CS2 \
    -c DO-e0b4f25a66

$ $OPENNSA/onsa terminate \
    -p domain1:nsa \
    -u http://10.50.0.2:9445/NSI/services/CS2 \
    -c DO-e0b4f25a66

$ $TESTOPENNSA/docker/intradomain/setup exit