Add missing test methods to IRouterAware and clean up unused imports.
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / INeutronRouterAware.java
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