Make dummy provider actually work 62/18262/2
authorRyan Moats <rmoats@us.ibm.com>
Tue, 14 Apr 2015 12:22:31 +0000 (07:22 -0500)
committerEd Warnicke <hagbard@gmail.com>
Tue, 14 Apr 2015 16:53:11 +0000 (16:53 +0000)
Change-Id: I3921aa4e0c4ffe3ac0fdc5f7bf5a3e7b6634d609
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
13 files changed:
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/Activator.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronFirewallDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronFirewallPolicyDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronFirewallRuleDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronLoadBalancerDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronLoadBalancerHealthMonitorDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronLoadBalancerListenerDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronLoadBalancerPoolDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronLoadBalancerPoolMemberDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronPortDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronSecurityGroupDummyProvider.java
dummyprovider/src/main/java/org/opendaylight/neutron/dummyprovider/NeutronSecurityRuleDummyProvider.java
pom.xml

index 418319b8622a2d4a67acd62474c44ffd2ac624cf..a0fb53c905284abb460a664fecfa0e3b26b9c878 100644 (file)
@@ -32,26 +32,60 @@ import org.opendaylight.neutron.spi.INeutronSubnetAware;
 
 import org.osgi.framework.BundleContext;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 public class Activator extends DependencyActivatorBase {
 
+    private static final Logger logger = LoggerFactory.getLogger(Activator.class);
+
     @Override
     public void init(BundleContext context, DependencyManager manager) throws Exception {
        manager.add(createComponent().setInterface(new String[] {
-           INeutronFirewallAware.class.getName(),
-           INeutronFirewallPolicyAware.class.getName(),
-           INeutronFirewallRuleAware.class.getName(),
-           INeutronFloatingIPAware.class.getName(),
-           INeutronLoadBalancerAware.class.getName(),
-           INeutronLoadBalancerHealthMonitorAware.class.getName(),
-           INeutronLoadBalancerListenerAware.class.getName(),
-           INeutronLoadBalancerPoolAware.class.getName(),
-           INeutronLoadBalancerPoolMemberAware.class.getName(),
-           INeutronNetworkAware.class.getName(),
-           INeutronPortAware.class.getName(),
-           INeutronRouterAware.class.getName(),
-           INeutronSecurityGroupAware.class.getName(),
-           INeutronSecurityRuleAware.class.getName(),
-           INeutronSubnetAware.class.getName() }, null));
+           INeutronFirewallAware.class.getName()}, null)
+           .setImplementation(NeutronFirewallDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronFirewallPolicyAware.class.getName()}, null)
+           .setImplementation(NeutronFirewallPolicyDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronFirewallRuleAware.class.getName()}, null)
+           .setImplementation(NeutronFirewallRuleDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronFloatingIPAware.class.getName()}, null)
+           .setImplementation(NeutronFloatingIPDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronLoadBalancerAware.class.getName()}, null)
+           .setImplementation(NeutronLoadBalancerDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronLoadBalancerHealthMonitorAware.class.getName()}, null)
+           .setImplementation(NeutronLoadBalancerHealthMonitorDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronLoadBalancerListenerAware.class.getName()}, null)
+           .setImplementation(NeutronLoadBalancerListenerDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronLoadBalancerPoolAware.class.getName()}, null)
+           .setImplementation(NeutronLoadBalancerPoolDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronLoadBalancerPoolMemberAware.class.getName()}, null)
+           .setImplementation(NeutronLoadBalancerPoolMemberDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronNetworkAware.class.getName()}, null)
+           .setImplementation(NeutronNetworkDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronPortAware.class.getName()}, null)
+           .setImplementation(NeutronPortDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronRouterAware.class.getName()}, null)
+           .setImplementation(NeutronRouterDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronSecurityGroupAware.class.getName()}, null)
+           .setImplementation(NeutronSecurityGroupDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronSecurityRuleAware.class.getName()}, null)
+           .setImplementation(NeutronSecurityRuleDummyProvider.class));
+       manager.add(createComponent().setInterface(new String[] {
+           INeutronSubnetAware.class.getName()}, null)
+           .setImplementation(NeutronSubnetDummyProvider.class));
     }
 
     /**
index aced0749a474506888490afcc315d6bdc6d505f8..aa8c464d2766f94faaadb45549e6f0fd77991a75 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index f0a6be92f8b2e20345318f94245e90dd18f6b0ae..109e6219d4e6c09ac2d2c1225b7dad2d1e70a983 100644 (file)
@@ -1,12 +1,12 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-package org.opendaylight.neutron.spi;
+package org.opendaylight.neutron.dummyprovider;
 
 import org.opendaylight.neutron.spi.INeutronFirewallPolicyAware;
 import org.opendaylight.neutron.spi.NeutronFirewallPolicy;
index 4a2b5bd1e90a67591b14db4a8fc6ae32fb7e2248..6190a524ddc6e9d17bcb29fadfcbbfb263daa9d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 2d286ad468e476b2fc4f3cddad1546a4c1d65783..ab21dad47e60ba1f4d05fb8b7d755b2ccf5ca6d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 6232f31e5b4795fde69ef81359661227a6701e93..7a6bc2faffe8bc138c0b6b9af040c9bd323cb32a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 8ac83208447c402c9cb49f54896b2c94f6b217a1..90115601aef2e2c6f30a1feb5a6581077f2221a6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index dc343567a0f97aff7d7622d571315363442dd16d..11d853cdf2528b1b0e8af7061339587bdfc4875c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index eb0e0343266dccb59cd34f32657e1a8c1689b134..0f27c682017cf1f052f1e0d902a3e95d268a616b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index d31b6084f5613f8a8ff8e4c0c0fd456244195dc8..cb45b83ce95828a02ea3ace7823a6edaa8fdb963 100644 (file)
@@ -6,7 +6,7 @@
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-package org.opendaylight.neutron.spi;
+package org.opendaylight.neutron.dummyprovider;
 
 import org.opendaylight.neutron.spi.INeutronPortAware;
 import org.opendaylight.neutron.spi.NeutronPort;
index ad4e6dddd3d45e0c8dca358727366824870d4cc1..29e3ad0d3170b14f4f85e2c77fe181b3a3a8d00d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 5472a6fd378053f7bda5d31ee348bcbfe17cbdfe..21b268ccf84e59bf0d3560f3365c146abbc76a78 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 IBM, Inc.
+ * Copyright IBM Corporation, 2015.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
diff --git a/pom.xml b/pom.xml
index 119d94fddfa0b7a3ff6072bd58f4ecfc26c5de5d..86effebcb4901ce98a1366b4a5bc3e6a436ad680 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,9 +4,7 @@
  This program and the accompanying materials are made available under the
  terms of the Eclipse Public License v1.0 which accompanies this distribution,
  and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-
-<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">
+--><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">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.opendaylight.neutron</groupId>