Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.host; |
| 2 | |
| 3 | import org.onlab.onos.net.ConnectPoint; |
| 4 | import org.onlab.packet.IpAddress; |
| 5 | import org.onlab.packet.MacAddress; |
| 6 | |
| 7 | /** |
| 8 | * Represents address information bound to a port. |
| 9 | */ |
| 10 | public 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 | } |