blob: 9ff808a97054ebf9c32c08680060ac118ff17944 [file] [log] [blame]
alshabib8c2a8b32015-03-31 16:31:03 -07001/*
2 * Copyright 2015 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.net.behaviour;
17
18import org.onlab.packet.IpAddress;
19
20/**
21 * Represents information for a device to connect to a controller.
22 */
23public class ControllerInfo {
24
25 public final IpAddress ip;
26 public final int tcpPort;
27
alshabibfaa1e362015-04-02 15:01:54 -070028 /**
29 * Information for contacting the controller.
30 *
31 * @param ip the ip address
32 * @param tcpPort the tcp port
33 */
alshabib8c2a8b32015-03-31 16:31:03 -070034 public ControllerInfo(IpAddress ip, int tcpPort) {
35 this.ip = ip;
36 this.tcpPort = tcpPort;
37 }
38}