X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fswitchmanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fswitchmanager%2FISwitchManager.java;h=ddc5f8ffee2777cd098148e05abe0c2ee741e7ea;hp=15aeda3881d8c4a56e8799c7a7f5cea23022cd44;hb=cffdfafd2b23b24025f5ba4b32f16bca501bfeb5;hpb=f7f47649dc420bd56ac0e54557dcbdfc115ae209 diff --git a/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java b/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java index 15aeda3881..ddc5f8ffee 100755 --- a/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java +++ b/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/ISwitchManager.java @@ -170,7 +170,7 @@ public interface ISwitchManager { * * @param node {@link org.opendaylight.controller.sal.core.Node} * @return map of {@link org.opendaylight.controller.sal.core.Property} such as - * {@link org.opendaylight.controller.sal.core.Name} and/or + * {@link org.opendaylight.controller.sal.core.Description} and/or * {@link org.opendaylight.controller.sal.core.Tier} etc. */ public Map getNodeProps(Node node); @@ -238,7 +238,7 @@ public interface ISwitchManager { * * @param nodeConnector {@link org.opendaylight.controller.sal.core.NodeConnector} * @return map of {@link org.opendaylight.controller.sal.core.Property} such as - * {@link org.opendaylight.controller.sal.core.Name} and/or + * {@link org.opendaylight.controller.sal.core.Description} and/or * {@link org.opendaylight.controller.sal.core.State} etc. */ public Map getNodeConnectorProps( @@ -307,17 +307,6 @@ public interface ISwitchManager { */ public Boolean isNodeConnectorEnabled(NodeConnector nodeConnector); - /** - * Return the list of mapping "nodeId"/"nodeName" for each connected node. - * Each map contains two string keys: "nodeId", "nodeName". - * Value associated to "nodeId" is the node id in string hex format. - * Value associated to "nodeName" is the name of the node. If no name was set, - * it will be the node id in string hex format. - * - * @return list of map - */ - public List> getListNodeIdNameMap(); - /** * Return controller MAC address * @@ -358,4 +347,15 @@ public interface ISwitchManager { * @return {@link org.opendaylight.controller.sal.core.Property} */ public Property createProperty(String propName, String propValue); + + /** + * Returns the description for the specified node. It is either the one + * configured by user or the description advertised by the node. + * + * @param node the network node identifier + * @return the description of the specified node. If no description is + * configured and the network node does not provide its description, + * an empty string is returned. + */ + public String getNodeDescription(Node node); }