Add missing test methods to IRouterAware and clean up unused imports.
authorRyan Moats <rmoats@us.ibm.com>
Mon, 7 Oct 2013 18:20:06 +0000 (13:20 -0500)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 13 Feb 2015 16:05:03 +0000 (08:05 -0800)
Realized that initial Neutron IRouterAware was missing test methods
for interface attach and detach operation.  In addition, removed
unused imports from other classes.

Change-Id: I8547ad7e7437d7215151f843744b56b2e0d93197
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
implementation/src/main/java/org/opendaylight/controller/networkconfig/neutron/implementation/NeutronNetworkInterface.java
src/main/java/org/opendaylight/controller/networkconfig/neutron/INeutronRouterAware.java

index 035e6dc4a8ccbb5c670d759a04bde7c1968f8a47..a2454217a64327c2d8adfc707598c904c7d395ce 100644 (file)
@@ -13,7 +13,6 @@ import java.util.ArrayList;
 import java.util.Dictionary;\r
 import java.util.EnumSet;\r
 import java.util.HashSet;\r
-import java.util.Iterator;\r
 import java.util.List;\r
 import java.util.Set;\r
 import java.util.Map.Entry;\r
index 16a9aec2397ac51a4ea98dc3ac07f5bb4b3beffb..040bdd87c4cdfd0fddbe39dae95dd67a4e956f04 100644 (file)
@@ -81,6 +81,20 @@ public interface INeutronRouterAware {
      */\r
     public void neutronRouterDeleted(NeutronRouter router);\r
 \r
+    /**\r
+     * Services provide this interface method to indicate if the specified interface can be attached to the specified route\r
+     *\r
+     * @param router\r
+     *            instance of the base Neutron Router object\r
+     * @param routerInterface\r
+     *            instance of the NeutronRouter_Interface to be attached to the router\r
+     * @return integer\r
+     *            the return value is understood to be a HTTP status code.  A return value outside of 200 through 299\r
+     *            results in the attach operation being interrupted and the returned status value reflected in the\r
+     *            HTTP response.\r
+     */\r
+    public int canAttachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface);\r
+\r
     /**\r
      * Services provide this interface method for taking action after an interface has been added to a router\r
      *\r
@@ -92,6 +106,20 @@ public interface INeutronRouterAware {
      */\r
     public void neutronRouterInterfaceAttached(NeutronRouter router, NeutronRouter_Interface routerInterface);\r
 \r
+    /**\r
+     * Services provide this interface method to indicate if the specified interface can be detached from the specified router\r
+     *\r
+     * @param router\r
+     *            instance of the base Neutron Router object\r
+     * @param routerInterface\r
+     *            instance of the NeutronRouter_Interface to be detached to the router\r
+     * @return integer\r
+     *            the return value is understood to be a HTTP status code.  A return value outside of 200 through 299\r
+     *            results in the detach operation being interrupted and the returned status value reflected in the\r
+     *            HTTP response.\r
+     */\r
+    public int canDetachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface);\r
+\r
     /**\r
      * Services provide this interface method for taking action after an interface has been removed from a router\r
      *\r