X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fforwarding%2Fstaticrouting%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fforwarding%2Fstaticrouting%2FIForwardingStaticRouting.java;h=03d9453126d89c8c5d9074bc7ec7b643c089d9a3;hp=9b9c0b0d812fa943a39e200a69c79eb72cb8d7a7;hb=e7342a8b0e42dcaccfa0a3af8bb70ece3f9d2189;hpb=29f7cfb54b580928c7feac63abce028a7014b0d5 diff --git a/opendaylight/forwarding/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/IForwardingStaticRouting.java b/opendaylight/forwarding/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/IForwardingStaticRouting.java index 9b9c0b0d81..03d9453126 100644 --- a/opendaylight/forwarding/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/IForwardingStaticRouting.java +++ b/opendaylight/forwarding/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/IForwardingStaticRouting.java @@ -12,12 +12,17 @@ package org.opendaylight.controller.forwarding.staticrouting; import java.net.InetAddress; import java.util.concurrent.ConcurrentMap; /** - * + * * This interface provides APIs to configure and manage static routes. * */ import org.opendaylight.controller.sal.utils.Status; +/** + * + * This Interface provides APIs to manage and query the static routes + * + */ public interface IForwardingStaticRouting { /** @@ -25,13 +30,13 @@ public interface IForwardingStaticRouting { * @param ipAddress (InetAddress) the IP address * @return StaticRoute */ - public StaticRoute getBestMatchStaticRoute(InetAddress ipAddress); + StaticRoute getBestMatchStaticRoute(InetAddress ipAddress); /** * Returns all the StaticRouteConfig * @return all the StaticRouteConfig */ - public ConcurrentMap getStaticRouteConfigs(); + ConcurrentMap getStaticRouteConfigs(); /** * Adds a StaticRouteConfig @@ -39,7 +44,7 @@ public interface IForwardingStaticRouting { * @return a text string indicating the result of the operation.. * If the operation is successful, the return string will be "SUCCESS" */ - public Status addStaticRoute(StaticRouteConfig config); + Status addStaticRoute(StaticRouteConfig config); /** * Removes the named StaticRouteConfig @@ -47,12 +52,5 @@ public interface IForwardingStaticRouting { * @return a text string indicating the result of the operation. * If the operation is successful, the return string will be "SUCCESS" */ - public Status removeStaticRoute(String name); - - /** - * Saves the config - * @return a text string indicating the result of the operation. - * If the operation is successful, the return string will be "Success" - */ - Status saveConfig(); + Status removeStaticRoute(String name); }