commit | 44deba944f1223c5830fabf26922fe12af1b9bde | [log] [tgz] |
---|---|---|
author | Laszlo Papp <laszlo.papp@hubersuhner.com> | Wed Nov 08 16:41:30 2017 +0000 |
committer | Thomas Vachuska <tom@opennetworking.org> | Sat Nov 11 00:25:28 2017 +0000 |
tree | 45b7956a7d1aa84081a48424ab28aee7c34c434e | |
parent | cc6ec60fb2e24d7cf854ee4a1031b515d881eb38 [diff] |
Add OpticalDevice behaviour (polatis) Change-Id: Iba4ff144cd14094333c97c0d83e91d742488190a
diff --git a/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDriversLoader.java b/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDriversLoader.java index 7548eaf..759f1b8 100644 --- a/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDriversLoader.java +++ b/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDriversLoader.java
@@ -18,6 +18,7 @@ import org.apache.felix.scr.annotations.Component; import org.onosproject.net.driver.AbstractDriverLoader; +import org.onosproject.net.optical.OpticalDevice; /** * Loader for Polatis device drivers. @@ -25,6 +26,10 @@ @Component(immediate = true) public class PolatisDriversLoader extends AbstractDriverLoader { + // OSGI: help bundle plugin discover runtime package dependency. + @SuppressWarnings("unused") + private OpticalDevice optical; + public PolatisDriversLoader() { super("/polatis-drivers.xml"); }
diff --git a/drivers/polatis/netconf/src/main/resources/polatis-drivers.xml b/drivers/polatis/netconf/src/main/resources/polatis-drivers.xml index 12bb4ca..cf87965 100644 --- a/drivers/polatis/netconf/src/main/resources/polatis-drivers.xml +++ b/drivers/polatis/netconf/src/main/resources/polatis-drivers.xml
@@ -17,6 +17,8 @@ <drivers> <driver name="polatis-netconf" extends="" manufacturer="Polatis" hwVersion="" swVersion=""> + <behaviour api="org.onosproject.net.optical.OpticalDevice" + impl="org.onosproject.net.optical.DefaultOpticalDevice"/> <behaviour api="org.onosproject.net.device.DeviceDescriptionDiscovery" impl="org.onosproject.drivers.polatis.netconf.PolatisDeviceDescription"/> <behaviour api="org.onosproject.net.behaviour.PowerConfig"