Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

In a datacenter environment, network administrators may want to lock down the topology of their network and not allow traffic to flow over links that they are not expecting. Also, cabling errors are common, and can lead to a topology being configured that was not intended. The network config link provider allows specifying the link topology via the netcfg mechanism, and disallows any links that are not in the defined configuration.

How to Use

Enable Network Config Link Provider

The openflow meta application contains openflow-basehostprovider and lldpprovider.
You can set the following into ONOS_APPS environment variable to replace lldpprovider with netcfglinksprovider.

...

Code Block
languagebash
export ONOS_APPS=drivers,openflow-base,hostprovider,netcfglinksprovider

Alternatively, since Network Config Link Provider is an application, it can also be enabled/disabled dynamically through ONOS CLI

Code Block
app deactivate org.onosproject.openflow
app activate org.onosproject.openflow-base org.onosproject.hostprovider org.onosproject.netcfglinksprovider

Provide Link Information in Network Config

You can upload hosts network config by POSTing a JSON file to:

Code Block
http://<ip>:8181/onos/v1/network/configuration/ 

Here is an example of a configuration that defines a set of links in a topology:

...