Versions Compared

Key

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

...

Code Block
{
  "devices": {
    "tl1:10.128.14.81:3082<ip>:<port>": {
      "basictl1": {
        "nameip": "Lumentum"<ip>,
        "driverport": "lumentum-waveready"
      }
    }
  }<port>,
  "apps": {
    "org.onosproject.tl1": {
      "devicesusername": [
        {<username>,
          "ippassword": "10.128.14.81",<password>
          "port": 3082},
          "usernamebasic": "test",{
          "passworddriver": "test"
 <driver-name>
       }
      ]
    }
  }
}

Drivers

Adding a new device to ONOS requires implementing a set of behaviors. For instance, to discover devices and their ports, implement the DeviceDescriptionDiscovery. If your device supports flow rules, implement the FlowRuleProgrammable. And so on. Go here for more information: Device Driver Subsystem.

...

To ensure the TL1 provider and protocol are loaded on activation of your driver, you will need to specify this in your driver BUCK/pom.xml file as follows (note the required_apps/onos.app.requires section):

Code Block
titleBUCK file
onos_app (
    app_name = 'org.onosproject.drivers.lumentum',
    title = 'Lumentum Device Drivers',
    category = 'Drivers',
    url = 'http://onosproject.org',
    description = 'ONOS Lumentum Device Drivers application.',
    required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement', 'org.onosproject.optical-model',
     'org.onosproject.tl1'],
)

...