Changes between Version 3 and Version 4 of Internal/OpenFlow/Controllers/Nox
- Timestamp:
- Oct 26, 2010, 6:13:07 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/Controllers/Nox
v3 v4 41 41 The 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: 42 42 43 1. Run nox-new-c-app.py from coreapps, netapps, or webapps (all three directories are found in ${NOXPATH}/nox/src/nox) .43 1. 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). 44 44 {{{ 45 /home/openflow/nox/src/scripts/nox-new-c-app.py -v cnf -test45 /home/openflow/nox/src/scripts/nox-new-c-app.py -v cnf_test 46 46 }}} 47 47 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. 49 49 50 50 2. run `boot.sh` and `configure` so nox can find and load the app when it starts up: 51 51 {{{ 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 53 cd build 54 ../configure 55 make 54 56 }}} 55 57 58 3. 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 {{{ 60 root@node1-4:~/nox/build/src# ./nox_core -i ptcp:6633 -v 61 00001|nox|INFO:Starting nox_core (/home/openflow/nox/build/src/.libs/lt-nox_core) 62 ... 63 00006|pyrt|DBG:Loading a component description file 'nox/coreapps/cnf_test/meta.json'. 64 }}} 56 65 66 or try loading it: 67 {{{ 68 ./nox_core -i ptcp:6633 -v "cnf test" 69 }}} 70 note that any underscores in the name of your app become spaces - e.g. "cnf_test" becomes "cnf test" 71 72 If you see the following after issuing the above command, you have a working framework: 73 {{{ 74 00046|openflow|DBG:Passive tcp interface bound to port 6633 75 00047|nox|INFO:nox bootstrap complete 76 00048|openflow|DBG:Passive tcp interface received connection 77 00049|openflow|DBG:stream: negotiated OpenFlow version 0x01 (we support versions 0x01 to 0x01 inclusive, peer no later than version 0x01) 78 ... 79 }}} 80