Network Config Host Provider is a host provider that learns host information from network config subsystem rather than packet-in.
There are two main benefit that Network Config Host Provider can offer:
- Block unexpected hosts
In some use cases such as CORD, the network orchestrator (XOS) knows all hosts that suppose to be in the system. We can easily avoid interference from unexpected hosts by explicitly specify which hosts we want to allow in network config.
We can easily mock up and inject a host through network config.
Network config subsystem already provides Java API and REST API. Which makes Network Config Host Provider very easy to use.
How to Use
Enable Network Config Host Provider
The openflow meta application contains openflow-base, hostprovider and lldpprovider.
You can set the following into ONOS_APPS environment variable to replace hostprovider with netcfghostprovider.
Alternatively, since Network Config Host Provider is an application, it can also be enabled/disabled dynamically through ONOS CLI
Provide Host Information in Network Config
You can upload hosts network config by POSTing a JSON file to:
Here is an JSON example: