From e9bb60be43af477f17b30ee1f2ba205565b7fa15 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Mon, 19 Oct 2015 10:14:31 -0700 Subject: Updated onos src tree to commit id 1e60f97ae50c05b94fcb6a10520738bfb5efdfd1 --- .../main/java/org/onosproject/dhcp/DhcpStore.java | 1 + .../org/onosproject/dhcp/impl/DhcpStoreConfig.java | 107 --------------------- 2 files changed, 1 insertion(+), 107 deletions(-) delete mode 100644 framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/impl/DhcpStoreConfig.java (limited to 'framework/src/onos/apps/dhcp') diff --git a/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/DhcpStore.java b/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/DhcpStore.java index 5615af1a..e263b3a2 100644 --- a/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/DhcpStore.java +++ b/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/DhcpStore.java @@ -64,6 +64,7 @@ public interface DhcpStore { * Releases the IP assigned to a Mac ID into the free pool. * * @param hostId the host ID for which the mapping needs to be changed + * @return released ip */ Ip4Address releaseIP(HostId hostId); diff --git a/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/impl/DhcpStoreConfig.java b/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/impl/DhcpStoreConfig.java deleted file mode 100644 index 0059e7e5..00000000 --- a/framework/src/onos/apps/dhcp/src/main/java/org/onosproject/dhcp/impl/DhcpStoreConfig.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2014 Open Networking Laboratory - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onosproject.dhcp.impl; - -import org.onosproject.core.ApplicationId; -import org.onosproject.net.config.Config; -import org.onosproject.net.config.basics.BasicElementConfig; - -/** - * DHCP Store Config class. - */ -public class DhcpStoreConfig extends Config { - - public static final String TIMER_DELAY = "delay"; - public static final String DEFAULT_TIMEOUT = "timeout"; - public static final String START_IP = "startip"; - public static final String END_IP = "endip"; - - /** - * Returns the delay after which the dhcp server will purge expired entries. - * - * @return time delay or null if not set - */ - public String timerDelay() { - return get(TIMER_DELAY, null); - } - - /** - * Sets the delay after which the dhcp server will purge expired entries. - * - * @param delay new time delay; null to clear - * @return self - */ - public BasicElementConfig timerDelay(String delay) { - return (BasicElementConfig) setOrClear(TIMER_DELAY, delay); - } - - /** - * Returns the default timeout for pending assignments. - * - * @return default timeout or null if not set - */ - public String defaultTimeout() { - return get(DEFAULT_TIMEOUT, null); - } - - /** - * Sets the default timeout for pending assignments. - * - * @param defaultTimeout new default timeout; null to clear - * @return self - */ - public BasicElementConfig defaultTimeout(String defaultTimeout) { - return (BasicElementConfig) setOrClear(DEFAULT_TIMEOUT, defaultTimeout); - } - - /** - * Returns the start IP for the available IP Range. - * - * @return start IP or null if not set - */ - public String startIP() { - return get(START_IP, null); - } - - /** - * Sets the start IP for the available IP Range. - * - * @param startIP new start IP; null to clear - * @return self - */ - public BasicElementConfig startIP(String startIP) { - return (BasicElementConfig) setOrClear(START_IP, startIP); - } - - /** - * Returns the end IP for the available IP Range. - * - * @return end IP or null if not set - */ - public String endIP() { - return get(END_IP, null); - } - - /** - * Sets the end IP for the available IP Range. - * - * @param endIP new end IP; null to clear - * @return self - */ - public BasicElementConfig endIP(String endIP) { - return (BasicElementConfig) setOrClear(END_IP, endIP); - } -} -- cgit 1.2.3-korg