blob: 7ced88267f8142e5d5e947b872d172e0b06fdb86 [file] [log] [blame]
Yi Tseng7a38f9a2017-06-09 14:36:40 -07001/*
2 * Copyright 2017-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.dhcprelay;
18
19import org.onosproject.dhcprelay.store.DhcpRecord;
20import org.onosproject.net.HostId;
21
22import java.util.Collection;
23import java.util.Optional;
24
25public interface DhcpRelayService {
26 /**
27 * Gets DHCP record for specific host id (mac + vlan).
28 *
29 * @param hostId the id of host
30 * @return the DHCP record of the host
31 */
32 Optional<DhcpRecord> getDhcpRecord(HostId hostId);
33
34 /**
35 * Gets all DHCP records from store.
36 *
37 * @return all DHCP records from store
38 */
39 Collection<DhcpRecord> getDhcpRecords();
40}