Fix IPluginInBridgeDomainConfigService API
[controller.git] / opendaylight / sal / networkconfiguration / api / src / main / java / org / opendaylight / controller / sal / networkconfig / bridgedomain / IPluginInBridgeDomainConfigService.java
index 20562b80e7f4fdaba44bd6c9fcec6981001ff3b0..c84136115c434c0a26367afcf1a438670e37f119 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  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.controller.sal.networkconfig.bridgedomain;
 
 import java.util.List;
@@ -8,8 +15,8 @@ import org.opendaylight.controller.sal.core.NodeConnector;
 import org.opendaylight.controller.sal.utils.Status;
 
 /**
- * @file IPluginInConfigurationService.java
- *
+ * This interface defines bridge domain configuration service methods to be
+ * implemented by protocol plugins
  */
 public interface IPluginInBridgeDomainConfigService {
     /**
@@ -22,7 +29,7 @@ public interface IPluginInBridgeDomainConfigService {
      * @note This method will return false if one or more of the supplied params is not supported by the
      * protocol plugin that serves the Node.
      */
-    public Status createBridgeDomain(Node node, String bridgeIdentifier, Map<ConfigConstants, Object> params) throws Throwable;
+    public Status createBridgeDomain(Node node, String bridgeIdentifier, Map<ConfigConstants, Object> params) throws BridgeDomainConfigServiceException;
 
     /**
      * Delete a Bridge Domain
@@ -154,4 +161,4 @@ public interface IPluginInBridgeDomainConfigService {
      *         returns null if there is no such nodeConnector is available or mapped.
      */
     public NodeConnector getNodeConnector(Node configNode, String bridgeIdentifier, String portIdentifier);
-}
\ No newline at end of file
+}