From: Alessandro Boch Date: Fri, 3 Jan 2014 17:52:35 +0000 (+0000) Subject: Merge changes Idf3f69db,I4499d7c7,I512af911 X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-1~144 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=cd70a1080d382015a1eebbde8fa0d9ad156ce404;hp=975bbe8a0ed13973cecd2040e523570653fd7d98 Merge changes Idf3f69db,I4499d7c7,I512af911 * changes: Initial fix to topology-adapter. Fixed topology-manager now that we have topology-lldp-discovery Added topology-lldp-discovery module --- diff --git a/opendaylight/commons/opendaylight/pom.xml b/opendaylight/commons/opendaylight/pom.xml index 5183165752..4304961526 100644 --- a/opendaylight/commons/opendaylight/pom.xml +++ b/opendaylight/commons/opendaylight/pom.xml @@ -95,12 +95,21 @@ 0.0.1-SNAPSHOT 4.0.10.Final 2.4 - - jacoco - java + 0.4.1-SNAPSHOT + 0.4.1-SNAPSHOT 0.5.0-SNAPSHOT 0.5.0-SNAPSHOT 0.5.0-SNAPSHOT + 0.4.1-SNAPSHOT + 0.4.1-SNAPSHOT + + 1.18-SNAPSHOT + 7.0.43-SNAPSHOT + + 0.4.1-SNAPSHOT + + jacoco + java 2.5.1 1.7 1.7 @@ -621,12 +630,12 @@ org.opendaylight.controller.thirdparty com.sun.jersey.jersey-servlet - 1.17 + ${jersey-servlet.version} org.opendaylight.controller.thirdparty org.apache.catalina.filters.CorsFilter - 7.0.42 + ${corsfilter.version} org.opendaylight.controller.thirdparty @@ -726,7 +735,7 @@ org.opendaylight.controller switchmanager - 0.5.1-SNAPSHOT + ${switchmanager.api.version} diff --git a/opendaylight/northbound/bundlescanner/implementation/pom.xml b/opendaylight/northbound/bundlescanner/implementation/pom.xml index baa0755dc9..03cb9c20de 100644 --- a/opendaylight/northbound/bundlescanner/implementation/pom.xml +++ b/opendaylight/northbound/bundlescanner/implementation/pom.xml @@ -67,12 +67,12 @@ org.opendaylight.controller bundlescanner - 0.4.1-SNAPSHOT + ${bundlescanner.version} org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} diff --git a/opendaylight/northbound/commons/pom.xml b/opendaylight/northbound/commons/pom.xml index 8e769a2349..8e52242105 100644 --- a/opendaylight/northbound/commons/pom.xml +++ b/opendaylight/northbound/commons/pom.xml @@ -71,17 +71,17 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller usermanager - 0.4.1-SNAPSHOT + ${usermanager.version} org.opendaylight.controller bundlescanner - 0.4.1-SNAPSHOT + ${bundlescanner.version} org.codehaus.jackson diff --git a/opendaylight/northbound/connectionmanager/pom.xml b/opendaylight/northbound/connectionmanager/pom.xml index 0ddfcdb3e1..b1f699bd36 100644 --- a/opendaylight/northbound/connectionmanager/pom.xml +++ b/opendaylight/northbound/connectionmanager/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -75,22 +75,22 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller sal.connection - 0.1.1-SNAPSHOT + ${sal.connection.version} org.opendaylight.controller connectionmanager - 0.1.1-SNAPSHOT + ${connectionmanager.version} org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.codehaus.enunciate @@ -100,7 +100,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} diff --git a/opendaylight/northbound/containermanager/pom.xml b/opendaylight/northbound/containermanager/pom.xml index 517f2e76a3..9e5bcba747 100644 --- a/opendaylight/northbound/containermanager/pom.xml +++ b/opendaylight/northbound/containermanager/pom.xml @@ -66,7 +66,7 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -81,7 +81,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.codehaus.enunciate @@ -91,7 +91,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} diff --git a/opendaylight/northbound/controllermanager/pom.xml b/opendaylight/northbound/controllermanager/pom.xml index d1299a2559..596f022365 100644 --- a/opendaylight/northbound/controllermanager/pom.xml +++ b/opendaylight/northbound/controllermanager/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -75,30 +75,30 @@ org.opendaylight.controller.thirdparty com.sun.jersey.jersey-servlet - 1.18-SNAPSHOT + ${jersey-servlet.version} org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller switchmanager - 0.6.1-SNAPSHOT + ${switchmanager.api.version} org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} @@ -120,7 +120,7 @@ org.opendaylight.controller.thirdparty org.apache.catalina.filters.CorsFilter - 7.0.43-SNAPSHOT + ${corsfilter.version} diff --git a/opendaylight/northbound/flowprogrammer/pom.xml b/opendaylight/northbound/flowprogrammer/pom.xml index 1b81ccb450..5e3328a1f9 100644 --- a/opendaylight/northbound/flowprogrammer/pom.xml +++ b/opendaylight/northbound/flowprogrammer/pom.xml @@ -28,7 +28,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -74,7 +74,7 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -83,12 +83,12 @@ org.opendaylight.controller forwardingrulesmanager - 0.4.1-SNAPSHOT + ${forwardingrulesmanager.version} org.opendaylight.controller sal - 0.7.0-SNAPSHOT + ${sal.version} org.codehaus.enunciate @@ -98,7 +98,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} junit diff --git a/opendaylight/northbound/hosttracker/pom.xml b/opendaylight/northbound/hosttracker/pom.xml index 541dfcfe2d..b7b4a731c1 100644 --- a/opendaylight/northbound/hosttracker/pom.xml +++ b/opendaylight/northbound/hosttracker/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -74,7 +74,7 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -88,12 +88,12 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.codehaus.enunciate diff --git a/opendaylight/northbound/networkconfiguration/bridgedomain/pom.xml b/opendaylight/northbound/networkconfiguration/bridgedomain/pom.xml index aa9fea5467..3e47e55121 100644 --- a/opendaylight/northbound/networkconfiguration/bridgedomain/pom.xml +++ b/opendaylight/northbound/networkconfiguration/bridgedomain/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -76,27 +76,27 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller sal.connection - 0.1.1-SNAPSHOT + ${sal.connection.version} org.opendaylight.controller sal.networkconfiguration - 0.0.2-SNAPSHOT + ${sal.networkconfiguration.version} org.opendaylight.controller connectionmanager - 0.1.1-SNAPSHOT + ${connectionmanager.version} org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.codehaus.enunciate @@ -106,7 +106,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} diff --git a/opendaylight/northbound/networkconfiguration/neutron/pom.xml b/opendaylight/northbound/networkconfiguration/neutron/pom.xml index f8342f935c..d54f2c5b28 100644 --- a/opendaylight/northbound/networkconfiguration/neutron/pom.xml +++ b/opendaylight/northbound/networkconfiguration/neutron/pom.xml @@ -89,17 +89,17 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.opendaylight.controller diff --git a/opendaylight/northbound/staticrouting/pom.xml b/opendaylight/northbound/staticrouting/pom.xml index d169de9f2a..2a3ae10ce3 100644 --- a/opendaylight/northbound/staticrouting/pom.xml +++ b/opendaylight/northbound/staticrouting/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -74,12 +74,12 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -94,7 +94,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} junit diff --git a/opendaylight/northbound/statistics/pom.xml b/opendaylight/northbound/statistics/pom.xml index 8df02c976b..4ce5d5437a 100644 --- a/opendaylight/northbound/statistics/pom.xml +++ b/opendaylight/northbound/statistics/pom.xml @@ -27,7 +27,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -82,22 +82,22 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller statisticsmanager - 0.4.1-SNAPSHOT + ${statisticsmanager.version} org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.codehaus.enunciate diff --git a/opendaylight/northbound/subnets/pom.xml b/opendaylight/northbound/subnets/pom.xml index bdf0b988f8..ed0e9428be 100644 --- a/opendaylight/northbound/subnets/pom.xml +++ b/opendaylight/northbound/subnets/pom.xml @@ -27,22 +27,22 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller clustering.services - 0.4.1-SNAPSHOT + ${clustering.services.version} org.opendaylight.controller configuration - 0.4.1-SNAPSHOT + ${configuration.version} org.opendaylight.controller switchmanager - 0.5.1-SNAPSHOT + ${switchmanager.api.version} @@ -89,12 +89,12 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -103,7 +103,7 @@ org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.codehaus.enunciate diff --git a/opendaylight/northbound/switchmanager/pom.xml b/opendaylight/northbound/switchmanager/pom.xml index e4447fee2d..bad129a54d 100644 --- a/opendaylight/northbound/switchmanager/pom.xml +++ b/opendaylight/northbound/switchmanager/pom.xml @@ -28,7 +28,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -75,7 +75,7 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller @@ -85,13 +85,13 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} diff --git a/opendaylight/northbound/topology/pom.xml b/opendaylight/northbound/topology/pom.xml index 3b3abc3436..a7ef3e1cba 100644 --- a/opendaylight/northbound/topology/pom.xml +++ b/opendaylight/northbound/topology/pom.xml @@ -29,7 +29,7 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} @@ -83,22 +83,22 @@ org.opendaylight.controller containermanager - 0.5.1-SNAPSHOT + ${containermanager.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller topologymanager - 0.4.1-SNAPSHOT + ${topologymanager.version} junit diff --git a/opendaylight/northbound/usermanager/pom.xml b/opendaylight/northbound/usermanager/pom.xml index 8a85dbb622..ed94369da3 100644 --- a/opendaylight/northbound/usermanager/pom.xml +++ b/opendaylight/northbound/usermanager/pom.xml @@ -64,17 +64,17 @@ org.opendaylight.controller sal - 0.5.1-SNAPSHOT + ${sal.version} org.opendaylight.controller usermanager - 0.4.1-SNAPSHOT + ${usermanager.version} org.opendaylight.controller commons.northbound - 0.4.1-SNAPSHOT + ${commons.northbound.version} org.codehaus.enunciate diff --git a/opendaylight/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java b/opendaylight/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java index 97966255a0..fa01fa6a60 100644 --- a/opendaylight/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java +++ b/opendaylight/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java @@ -35,10 +35,10 @@ import org.opendaylight.controller.sal.core.State; import org.opendaylight.controller.sal.core.UpdateType; import org.opendaylight.controller.sal.packet.address.EthernetAddress; import org.opendaylight.controller.sal.topology.TopoEdgeUpdate; -import org.opendaylight.controller.sal.utils.Status; -import org.opendaylight.controller.sal.utils.StatusCode; import org.opendaylight.controller.sal.utils.NodeConnectorCreator; import org.opendaylight.controller.sal.utils.NodeCreator; +import org.opendaylight.controller.sal.utils.Status; +import org.opendaylight.controller.sal.utils.StatusCode; import org.opendaylight.controller.switchmanager.ISwitchManager; import org.opendaylight.controller.switchmanager.SpanConfig; import org.opendaylight.controller.switchmanager.Subnet; @@ -55,7 +55,7 @@ public class TopologyManagerImplTest { private final class TestSwitchManager implements ISwitchManager { private final Set nodeSet = new HashSet(); private final Set nodeConnectorSet = - new HashSet(); + new HashSet(); private void addNodeConnectors(NodeConnector ... connectors) { for (NodeConnector nc: connectors) { @@ -69,9 +69,9 @@ public class TopologyManagerImplTest { private void addNodeConnectors(TopologyUserLinkConfig ... links) { for (TopologyUserLinkConfig link: links) { NodeConnector src = - NodeConnector.fromString(link.getSrcNodeConnector()); + NodeConnector.fromString(link.getSrcNodeConnector()); NodeConnector dst = - NodeConnector.fromString(link.getDstNodeConnector()); + NodeConnector.fromString(link.getDstNodeConnector()); addNodeConnectors(src, dst); } } @@ -292,6 +292,35 @@ public class TopologyManagerImplTest { public String getNodeDescription(Node node) { return null; } + + @Override + public Status removeControllerProperty(String propertyName){ + return null; + } + + @Override + public Set getConfiguredNotConnectedSwitches() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Map getControllerProperties() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Property getControllerProperty(String propertyName) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Status setControllerProperty(Property property) { + // TODO Auto-generated method stub + return null; + } } /* @@ -485,13 +514,13 @@ public class TopologyManagerImplTest { Assert.assertTrue(topoManagerImpl.getUserLinks().isEmpty()); TopologyUserLinkConfig badlink1 = - new TopologyUserLinkConfig("bad1", "OF|1@OF|4", "OF|1@OF|5"); + new TopologyUserLinkConfig("bad1", "OF|1@OF|4", "OF|1@OF|5"); TopologyUserLinkConfig badlink2 = - new TopologyUserLinkConfig("bad2", "OF|10@OF|7", "OF|7@OF|13"); + new TopologyUserLinkConfig("bad2", "OF|10@OF|7", "OF|7@OF|13"); Assert.assertEquals(StatusCode.NOTFOUND, - topoManagerImpl.addUserLink(badlink1).getCode()); + topoManagerImpl.addUserLink(badlink1).getCode()); Assert.assertEquals(StatusCode.NOTFOUND, - topoManagerImpl.addUserLink(badlink2).getCode()); + topoManagerImpl.addUserLink(badlink2).getCode()); } @Test @@ -559,7 +588,7 @@ public class TopologyManagerImplTest { reverseLink[i] = new TopologyUserLinkConfig(name, dstNodeConnector, srcNodeConnector); Assert.assertEquals(StatusCode.NOTFOUND, - topoManagerImpl.addUserLink(link[i]).getCode()); + topoManagerImpl.addUserLink(link[i]).getCode()); swMgr.addNodeConnectors(link[i]); Assert.assertTrue(topoManagerImpl.addUserLink(link[i]).isSuccess()); }