blob: 3135b7732fa4caf0f549e3710527658216dec609 [file] [log] [blame]
tomb36046e2014-08-27 00:22:24 -07001package org.onlab.onos.net;
2
3/**
4 * Abstraction of a network port.
5 */
6public interface Port {
7
8 // Notion of port state: enabled, disabled, blocked
9
10 /**
11 * Returns the port number.
12 *
13 * @return port number
14 */
15 PortNumber number();
16
17 /**
18 * Returns the identifier of the network element to which this port belongs.
19 *
20 * @return parent network element
21 */
22 Element parent();
23
24 // set of port attributes
25
26}