commit | a77d3bf65b60a94df4113e3e86e725357522f37a | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Mon Jan 30 15:27:36 2017 -0800 |
committer | Simon Hunt <simon@onlab.us> | Mon Jan 30 15:27:50 2017 -0800 |
tree | 40db2633764aaaee0453e3158c94496efbc54e0f | |
parent | dc09329a5089ddc0d2510f541ac3730a43afcaff [diff] |
Fix bad parsing of device ID (needs radix 16 for hex number). Change-Id: I88cb49af3c9fe4c55a4b5e4180ed8a55d041a88c
diff --git a/providers/null/src/main/java/org/onosproject/provider/nil/TopologyMutationDriver.java b/providers/null/src/main/java/org/onosproject/provider/nil/TopologyMutationDriver.java index 17ea3b9..74bfa12 100644 --- a/providers/null/src/main/java/org/onosproject/provider/nil/TopologyMutationDriver.java +++ b/providers/null/src/main/java/org/onosproject/provider/nil/TopologyMutationDriver.java
@@ -167,7 +167,8 @@ * @param deviceId device identifier */ void repairDevice(DeviceId deviceId) { - int chassisId = Integer.parseInt(deviceId.uri().getSchemeSpecificPart()); + // device IDs are expressed in hexadecimal... (use radix 16) + int chassisId = Integer.parseInt(deviceId.uri().getSchemeSpecificPart(), 16); simulator.createDevice(deviceId, chassisId); Set<Link> links = savedLinks.remove(deviceId); if (links != null) {