blob: 16cc2b1229af77b5722aedfea6d32a2fc2709273 [file] [log] [blame]
Jonathan Hartac60c082014-09-23 08:55:17 -07001package org.onlab.onos.net.host;
2
3import org.onlab.onos.net.ConnectPoint;
4import org.onlab.packet.IpAddress;
5import org.onlab.packet.MacAddress;
6
7/**
8 * Represents address information bound to a port.
9 */
10public interface PortAddresses {
11
12 /**
13 * Returns the connection point this address information is bound to.
14 *
15 * @return the connection point
16 */
17 ConnectPoint connectPoint();
18
19 /**
20 * Returns the IP address bound to the port.
21 *
22 * @return the IP address
23 */
24 IpAddress ip();
25
26 /**
27 * Returns the MAC address bound to the port.
28 *
29 * @return the MAC address if one is bound, otherwise null
30 */
31 MacAddress mac();
32}