commit | 74a2392264544cc68916b1c1c3d166a6c8b2ce59 | [log] [tgz] |
---|---|---|
author | Ayaka Koshibe <ayaka@onlab.us> | Tue Sep 09 16:45:39 2014 -0700 |
committer | Ayaka Koshibe <ayaka@onlab.us> | Tue Sep 09 16:45:39 2014 -0700 |
tree | b98f35f08e65cb052d5a2f16adf811f3621847db | |
parent | a89cc58da1632d73c5e369c5152c7223da30775b [diff] [blame] |
added default host constructs to API Change-Id: I3ef3e08559c7c4d73d8e4aee693589ee0830ed85
diff --git a/core/api/src/main/java/org/onlab/onos/net/Host.java b/core/api/src/main/java/org/onlab/onos/net/Host.java index d66566d..667bb88 100644 --- a/core/api/src/main/java/org/onlab/onos/net/Host.java +++ b/core/api/src/main/java/org/onlab/onos/net/Host.java
@@ -25,6 +25,13 @@ MACAddress mac(); /** + * Returns the VLAN ID tied to this host. + * + * @return VLAN ID value + */ + short vlan(); + + /** * Returns set of IP addresses currently bound to the host MAC address. * * @return set of IP addresses; empty if no IP address is bound