blob: 19123dc4de88d0b1e93058572f55860d21ba5687 [file] [log] [blame]
Yi Tseng51301292017-07-28 13:02:59 -07001/*
2 * Copyright 2017-present Open Networking Foundation
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 */
17
18package org.onosproject.dhcprelay;
19
20import org.apache.felix.scr.annotations.Component;
21import org.apache.felix.scr.annotations.Property;
22import org.apache.felix.scr.annotations.Service;
23import org.onlab.packet.BasePacket;
24import org.onlab.packet.IpAddress;
25import org.onlab.packet.MacAddress;
26import org.onlab.packet.VlanId;
27import org.onosproject.dhcprelay.api.DhcpHandler;
Yi Tseng483ac6f2017-08-02 15:03:31 -070028import org.onosproject.dhcprelay.config.DhcpServerConfig;
Yi Tseng51301292017-07-28 13:02:59 -070029import org.onosproject.net.ConnectPoint;
30import org.onosproject.net.packet.PacketContext;
31
Yi Tseng483ac6f2017-08-02 15:03:31 -070032import java.util.Collection;
Yi Tseng51301292017-07-28 13:02:59 -070033import java.util.Optional;
34
35@Component
36@Service
37@Property(name = "version", value = "6")
38public class Dhcp6HandlerImpl implements DhcpHandler {
39
40 @Override
41 public void processDhcpPacket(PacketContext context, BasePacket dhcp6Payload) {
42
43 }
44
45 @Override
46 public Optional<IpAddress> getDhcpServerIp() {
47 return null;
48 }
49
50 @Override
51 public Optional<IpAddress> getDhcpGatewayIp() {
52 return null;
53 }
54
55 @Override
56 public Optional<MacAddress> getDhcpConnectMac() {
57 return null;
58 }
59
60 @Override
61 public void setDhcpGatewayIp(IpAddress dhcpGatewayIp) {
62
63 }
64
65 @Override
66 public void setDhcpConnectVlan(VlanId dhcpConnectVlan) {
67
68 }
69
70 @Override
71 public void setDhcpConnectMac(MacAddress dhcpConnectMac) {
72
73 }
74
75 @Override
76 public void setDhcpServerConnectPoint(ConnectPoint dhcpServerConnectPoint) {
77
78 }
79
80 @Override
81 public void setDhcpServerIp(IpAddress dhcpServerIp) {
82
83 }
Yi Tseng483ac6f2017-08-02 15:03:31 -070084
85 @Override
86 public void setDefaultDhcpServerConfigs(Collection<DhcpServerConfig> configs) {
87
88 }
89
90 @Override
91 public void setIndirectDhcpServerConfigs(Collection<DhcpServerConfig> configs) {
92
93 }
Yi Tseng51301292017-07-28 13:02:59 -070094}