...
To connect to a server agent you must issue the following HTTP post request:
|
To disconnect from a server agent you must issue the following HTTP post request:
|
Controller Configuration
The server device driver can monitor/modify the controller's information on a server on the fly.
To get the associated controller of a certain server, one could issue the following HTTP GET command:
|
A similar result could be achieved using the ONOS CLI as follows:
|
To set a (set of) controller(s) to a certain server, one could issue the following HTTP POST command:
|
A similar result could be achieved using the ONOS CLI as follows:
|
Finally, to delete a (set of) controller(s) from a server, one could issue the following an HTTP DELETE command :
...
curl -X DELETE --data '{"controllers":[{"ip":"192.168.125.7","port":80,"type":"tcp"},{"ip":"192.168.125.8","port":80,"type":"tcp"}]}' --header "Content-Type: application/json" http://serverIp/metron/controllers
A similar result could be achieved using the ONOS CLI to the resource 'delete_controllers' or an ONOS CLI command as follows:
|
Server System Operations
The driver supports a system-related operation which returns the time of the server as follows:
|
A similar result could be achieved using the ONOS CLI as follows:
|
A reboot operation is also offered by this ONOS behavior, but the server driver does not implement it.
...
To delete multiple rules at once, you should append a comma-separated rule IDs as follows:
|
NIC Table Statistics
To retrieve statistics related to a server's NIC tables, the server device driver needs to hit the following path:
|
NIC Port Administration
To enable a NIC port, the server device driver needs to issue the following HTTP post command to a server:
|
A similar result could be achieved using the ONOS CLI as follows:
|
Similarly, to disable a NIC port, the server device driver needs to issue the following HTTP post command to a server:
|
A similar result could be achieved using the ONOS CLI as follows:
|
NIC Queue Configuration
The server device driver can also provide NIC queue configuration information through the following HTTP GET command:
|
This ONOS behavior also offers two additional methods, i.e., add/delete queue, but the server driver does not implement these methods.
...