...
How can I specify the apps for ONOS to load?
For now, try using ONOS_APPS or APPS or connecting to the karaf console and using ONOS CLI commands.
| Code Block |
|---|
# As root: |
...
ONOS_APPS=drivers,openflow,fwd,proxyarp,mobility mn --custom onos.py --controller onos,3 --topo tree,3,3 |
...
# or ( |
...
using sudo): |
...
sudo env ONOS_APPS=drivers,openflow,fwd,proxyarp,mobility mn --custom onos.py --controller onos,3 --topo tree,3,3 |
...
# or |
...
ONOS_APPS=drivers,openflow,fwd,proxyarp,mobility sudo -E mn --custom onos.py --controller onos,3 --topo tree,3,3 |
...
Note that sudo clears environment variables by default, but the ONOS_APPS environment variable must be set in order for mn to read it.
In the future, there should be an option to --controller onos and/or ONOSCluster().
...
You can change it by passing in a new option to mn or to ONOSCluster():
| Code Block | ||
|---|---|---|
| ||
sudo mn --custom onos.py --controller onos,3,ipBase=172.1.2.0/24 --topo tree,3,3 |
...
Yes you can! Simply use --topo none ; for example,. For example:
| Code Block | ||
|---|---|---|
| ||
mn --custom onos.py --controller onos,3 --topo none |
onos.py will forward the ports (e.g. 6653, 6654, 6655) appropriately as described above. Your Mininet VM or server will have to be reachable from the switches' management network, and you will need to configure your switches to connect to you ONOS nodes: the address of each node will be the VM's IP address, and the port will be the appropriate forwarded OpenFlow port.
...