From 4e3780ef2512b68c0ae96b84f4e68136e8118e87 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Sat, 14 Oct 2017 08:25:55 +0100 Subject: [PATCH] Polatis netconf: fix the default device Change-Id: Ib466a8e71a3f25d859b5dffeefc0d1bfc46674f1 --- .../drivers/polatis/netconf/PolatisDeviceDescription.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDeviceDescription.java b/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDeviceDescription.java index 76c8bdb2e1..21519efa55 100644 --- a/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDeviceDescription.java +++ b/drivers/polatis/netconf/src/main/java/org/onosproject/drivers/polatis/netconf/PolatisDeviceDescription.java @@ -33,6 +33,7 @@ import org.onosproject.net.driver.AbstractHandlerBehaviour; import static org.onosproject.net.optical.device.OmsPortHelper.omsPortDescription; +import org.onlab.packet.ChassisId; import org.onlab.util.Frequency; import org.onlab.util.Spectrum; @@ -95,10 +96,10 @@ public class PolatisDeviceDescription extends AbstractHandlerBehaviour DeviceId devid = handler().data().deviceId(); Device dev = devsvc.getDevice(devid); if (dev == null) { - return new DefaultDeviceDescription(dev.id().uri(), FIBER_SWITCH, + return new DefaultDeviceDescription(devid.uri(), FIBER_SWITCH, DEFAULT_MANUFACTURER, DEFAULT_DESCRIPTION_DATA, DEFAULT_DESCRIPTION_DATA, DEFAULT_DESCRIPTION_DATA, - dev.chassisId()); + new ChassisId()); } String reply = netconfGet(handler(), getProductInformationFilter()); HierarchicalConfiguration cfg = configAt(reply, KEY_DATA_PRODINF);