blob: 32956c4a27022b4c821867f707f491598e48cd25 [file] [log] [blame]
Daniel Parkbe6b6732016-11-11 15:52:19 +09001/*
2 * Copyright 2016-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 */
16package org.onosproject.ofagent.impl;
17
18import org.onlab.packet.IpAddress;
19import org.onlab.packet.TpPort;
20import org.onosproject.ofagent.api.OFController;
21
22/**
23 * Implementation of tenant openflow controller.
24 */
25public class DefaultOFController implements OFController {
26 private IpAddress ip;
27 private TpPort port;
28
29 public DefaultOFController(IpAddress ip, TpPort port) {
30 this.ip = ip;
31 this.port = port;
32 }
33
34 @Override
35 public IpAddress ip() {
36 return ip;
37 }
38
39 @Override
40 public TpPort port() {
41 return port;
42 }
43}