...
- Start the Mininet machine with of-config installed under Virtual-Box
Start the ofc-server in the Mininet machine
Code Block sudo ofc-server -v 3 -f
- start ONOS
activate the netconf app :
Code Block onos> app activate org.onosproject.netconf
specify to ONOS that we are using netconf devicesto connect to a device and which driver to use for that device:
Code Block $ curl -X POST -H "content-type:application/json" http://localhost:8181/onos/v1/network/configuration -d @$ONOS_ROOT/tools/test/configs/netconf-cfg.json --user onos:rocks
call the command or run the app you have written. For example:
Code Block onos> device-controllers-netconf netconf:mininet@10.1.9.24:1830
Future Work
There is much room for improvement and testing, this is only a basic skeleton of the infrastructure. The improvement should be focused on extracting the XML that is now encoded in the NetconfSessionImpl's methods and testing each operation. In the future the XML can be generated through YANG models so it can be specific for every type of device we want to connect.
...