...
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>,
{
"ip"password": "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.
...
Code Block |
---|
<driver name="lumentum-waveready" manufacturer="Lumentum" hwVersion="WR*">
<behaviour api="org.onosproject.net.device.DeviceDescriptionDiscovery"
impl="org.onosproject.drivers.lumentum.LumentumWaveReadyDiscovery"/>
<behaviour api="org.onosproject.net.optical.OpticalDevice"
impl="org.onosproject.net.optical.DefaultOpticalDevice"/>
</driver> |
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 |
---|
|
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'],
) |
Code Block |
---|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
...
<properties>
<onos.app.name>org.onosproject.drivers.lumentum</onos.app.name>
<onos.app.category>Drivers</onos.app.category>
<onos.app.title>Lumentum Device Drivers</onos.app.title>
<onos.app.requires>
org.onosproject.snmp,
org.onosproject.faultmanagement,
org.onosproject.optical-model,
org.onosproject.tl1
</onos.app.requires>
</properties>
...
|
Missing features / Help wanted
...