This repository was archived by the owner on May 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
jeroenh edited this page Sep 11, 2012
·
9 revisions
First download the configuration files from OpenNSA-Tools Examples this contains the following files:
-
_opennsa-cliConfiguration file for the client CLI, which should go to~/.opennsa-cli -
example-internal.nrmDefines the mapping of the OpenNSA available ports to physical ports for the example topology -
example-topology.nrmDescribes an example topology. -
opennsa.confConfiguration file for the server. Use in your current directory -
start_opennsa.tacStartup file for Twisted
Edit the opennsa-cli file to point to the right topology file.
This short guide uses an alternate CLI, which should be installed in your path. With the cli config file in your homedirectory and the four topology files for the server in the local directory, you can execute the following to start the server:
twistd -ny start_opennsa.tac
This starts up the server in debug mode (-n) so that you can see the output. A first request can then be sent to the server using:
onsa-jeroen -r exampledomain A1 exampledomain A2
This requests a local connection between A1 and A2 on the exampledomain.
Or if you prefer you can also use the opennsa included utility:
onsa reserve -t example-topology.owl -n exampledomain -s exampledomain:A1 -d exampledomain:A2
Your console should show something like this:
2012-09-11 16:01:37+0200 [-] Log opened.
2012-09-11 16:01:37+0200 [-] twistd 12.2.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python 2.7.2) starting up.
2012-09-11 16:01:37+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2012-09-11 16:01:37+0200 [opennsa.setup] OpenNSA service initializing
2012-09-11 16:01:38+0200 [-] Site starting on 9081
2012-09-11 16:01:38+0200 [-] Starting factory <twisted.web.server.Site instance at 0x103dddab8>
2012-09-11 16:01:38+0200 [-] OpenNSA service started
2012-09-11 16:01:44+0200 [opennsa]
2012-09-11 16:01:44+0200 [opennsa.NSIService] Connection 3809c03a-fc19-11e1-80db-0023df833324. Reserve request from urn:ogf:network:nsa:exampledomain.
2012-09-11 16:01:44+0200 [opennsa.NSIService] Connection 3809c03a-fc19-11e1-80db-0023df833324: Simple path creation: exampledomain:A1 -> exampledomain:A2 (exampledomain)
2012-09-11 16:01:44+0200 [DUD Network exampledomain] Link: 4366874816, DudDevicePort_A1 -> DudDevicePort_A2 : RESERVING.
2012-09-11 16:01:44+0200 [opennsa.Scheduler] State transition scheduled: In 18 seconds to state Scheduled
2012-09-11 16:01:44+0200 [DUD Network exampledomain] Link: 4366874816, DudDevicePort_A1 -> DudDevicePort_A2 : RESERVED.
2012-09-11 16:01:44+0200 [opennsa.Connection] Connection 3809c03a-fc19-11e1-80db-0023df833324: Reserve succeeded
2012-09-11 16:01:44+0200 [opennsa.Scheduler] State transition scheduled: In 18 seconds to state Scheduled
2012-09-11 16:02:03+0200 [opennsa.Scheduler] State transition scheduled: In 239 seconds to state Terminated
2012-09-11 16:02:03+0200 [opennsa.Scheduler] State transition scheduled: In 239 seconds to state Terminating
2012-09-11 16:02:03+0200 [DUD Network exampledomain] Link: 4366874816, DudDevicePort_A1 -> DudDevicePort_A2 : SCHEDULED.