Changes between Version 3 and Version 4 of Internal/OpenFlow/Controllers/Nox


Ignore:
Timestamp:
Oct 26, 2010, 6:13:07 PM (14 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/Controllers/Nox

    v3 v4  
    4141The information on how to do this can be found in /html/Howto.html under the doxygen generated docs for nox. As the steps require file creation, compilation, ect, you may need root privelages on the machine. The rough steps are as follows:
    4242
    43 1. Run nox-new-c-app.py from coreapps, netapps, or webapps (all three directories are found in ${NOXPATH}/nox/src/nox).
     431. Run nox-new-c-app.py from coreapps, netapps, or webapps (all three directories are found in ${NOXPATH}/nox/src/nox), where ${NOXPATH} is the place with your working nox directory).
    4444{{{
    45  /home/openflow/nox/src/scripts/nox-new-c-app.py -v cnf-test
     45 /home/openflow/nox/src/scripts/nox-new-c-app.py -v cnf_test
    4646}}}
    4747
    48  nox-new-c-app.py basically creates a directory containing the framework for your application (Makefile, meta.json, ect), basing it on coreapps/simple_c_app. Your app gets created in whichever directory you run nox-new-c-app.py from; in this case we created a new app "cnf-test" in directory netapps.
     48 nox-new-c-app.py basically creates a directory containing the framework for your application (Makefile, meta.json, ect), basing it on coreapps/simple_c_app. Your app gets created in whichever directory you run nox-new-c-app.py from; in this case we created a new app "cnf_test" in directory coreapps.
    4949
    50502. run `boot.sh` and `configure` so nox can find and load the app when it starts up:
    5151{{{
    52 sh /home/openflow/nox/boot.sh
    53 /home/openflow/nox/configure
     52./boot.sh                       #this is found in the root of your nox directory e.g. ~/nox/boot.sh
     53cd build
     54../configure
     55make
    5456}}} 
    5557
     583. to test if your app is there, you can watch out for it being loaded when you do a dry run of nox_core:
     59{{{
     60root@node1-4:~/nox/build/src# ./nox_core -i ptcp:6633 -v
     6100001|nox|INFO:Starting nox_core (/home/openflow/nox/build/src/.libs/lt-nox_core)
     62...
     6300006|pyrt|DBG:Loading a component description file 'nox/coreapps/cnf_test/meta.json'.
     64}}}
    5665
     66or try loading it:
     67{{{
     68 ./nox_core -i ptcp:6633 -v "cnf test"
     69}}}
     70note that any underscores in the name of your app become spaces - e.g. "cnf_test" becomes "cnf test"
     71
     72If you see the following after issuing the above command, you have a working framework:
     73{{{
     7400046|openflow|DBG:Passive tcp interface bound to port 6633
     7500047|nox|INFO:nox bootstrap complete
     7600048|openflow|DBG:Passive tcp interface received connection
     7700049|openflow|DBG:stream: negotiated OpenFlow version 0x01 (we support versions 0x01 to 0x01 inclusive, peer no later than version 0x01)
     78...
     79}}}
     80