X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fswitchmanager%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2FISwitchManager.java;h=1af67719e19316407fb70f04066a2ffdc59ce4f3;hb=51e9be2b3aac6ea33bf21e5a3a978325d24e9e0e;hp=ee2c2c20398cf2c5deefa4b0b03bdceecde56fbb;hpb=8bcd39b0fdd03d1ebbc46118d3ae4f2ee096b012;p=controller.git diff --git a/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java b/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java index ee2c2c2039..1af67719e1 100644 --- a/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java +++ b/opendaylight/switchmanager/api/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java @@ -31,7 +31,7 @@ public interface ISwitchManager { * Add a subnet configuration * * @param configObject refer to {@link Open Declaration org.opendaylight.controller.switchmanager.SubnetConfig} - * @return "Success" or failure reason + * @return the Status object representing the result of the request */ public Status addSubnet(SubnetConfig configObject); @@ -39,10 +39,18 @@ public interface ISwitchManager { * Remove a subnet configuration * * @param configObject refer to {@link Open Declaration org.opendaylight.controller.switchmanager.SubnetConfig} - * @return "Success" or failure reason + * @return the Status object representing the result of the request */ public Status removeSubnet(SubnetConfig configObject); + /** + * Modify a subnet configuration + * + * @param configObject refer to {@link Open Declaration org.opendaylight.controller.switchmanager.SubnetConfig} + * @return the Status object representing the result of the request + */ + public Status modifySubnet(SubnetConfig configObject); + /** * Remove a subnet configuration given the name * @@ -163,20 +171,20 @@ public interface ISwitchManager { /** * Add node connectors to a subnet * - * @param name The subnet config name - * @param nodeConnectors nodePorts string specified by {@link Open Declaration org.opendaylight.controller.switchmanager.SubnetConfig} - * @return "Success" or failure reason + * @param name The configured subnet name + * @param nodeConnectors list of string each representing a node connector as specified by {@link Open Declaration org.opendaylight.controller.sal.core.NodeConnector} + * @return The Status object indicating the result of this request */ - public Status addPortsToSubnet(String name, String nodeConnectors); + public Status addPortsToSubnet(String name, List nodeConnectors); /** * Remove node connectors from a subnet * - * @param name the subnet config name - * @param nodeConnectors nodePorts string specified by {@link Open Declaration org.opendaylight.controller.switchmanager.SubnetConfig} - * @return "Success" or failure reason + * @param name the configured subnet name + * @param nodeConnectors list of string each representing a node connector as specified by {@link Open Declaration org.opendaylight.controller.sal.core.NodeConnector} + * @return The Status object indicating the result of this request */ - public Status removePortsFromSubnet(String name, String nodeConnectors); + public Status removePortsFromSubnet(String name, List nodeConnectors); /** * Return the set of all the nodes