Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-10-14 15:08:10 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a263915d7ad289effac34ac9e86e3bef9789887c
a263915d
1 parent
3e1a5bf6
Added Host related memos.
Change-Id: Idbbce6a72b6f7fecc6691f2af68f4ce40b58ca34
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/DefaultHost.java
core/api/src/main/java/org/onlab/onos/net/Host.java
core/api/src/main/java/org/onlab/onos/net/host/HostDescription.java
core/api/src/main/java/org/onlab/onos/net/host/HostStore.java
core/api/src/main/java/org/onlab/onos/net/host/PortAddresses.java
core/store/dist/src/main/java/org/onlab/onos/store/host/impl/GossipHostStore.java
core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleHostStore.java
core/api/src/main/java/org/onlab/onos/net/DefaultHost.java
View file @
a263915
...
...
@@ -20,6 +20,7 @@ public class DefaultHost extends AbstractElement implements Host {
private
final
MacAddress
mac
;
private
final
VlanId
vlan
;
private
final
HostLocation
location
;
// FIXME: should be IpAddress
private
final
Set
<
IpPrefix
>
ips
;
/**
...
...
core/api/src/main/java/org/onlab/onos/net/Host.java
View file @
a263915
...
...
@@ -38,6 +38,7 @@ public interface Host extends Element {
*
* @return set of IP addresses; empty if no IP address is bound
*/
// FIXME: Switch to IpAddress
Set
<
IpPrefix
>
ipAddresses
();
/**
...
...
core/api/src/main/java/org/onlab/onos/net/host/HostDescription.java
View file @
a263915
...
...
@@ -37,6 +37,7 @@ public interface HostDescription extends Description {
*
* @return host IP address
*/
// FIXME: Switch to IpAddress
IpPrefix
ipAddress
();
}
...
...
core/api/src/main/java/org/onlab/onos/net/host/HostStore.java
View file @
a263915
...
...
@@ -29,6 +29,7 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
HostEvent
createOrUpdateHost
(
ProviderId
providerId
,
HostId
hostId
,
HostDescription
hostDescription
);
// FIXME: API to remove only IpAddress is missing
/**
* Removes the specified host from the inventory.
*
...
...
@@ -81,6 +82,7 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
* @param ip ip address
* @return set of hosts with the given IP
*/
// FIXME: Switch to IpAddress
Set
<
Host
>
getHosts
(
IpPrefix
ip
);
/**
...
...
core/api/src/main/java/org/onlab/onos/net/host/PortAddresses.java
View file @
a263915
...
...
@@ -17,6 +17,7 @@ import com.google.common.base.MoreObjects;
public
class
PortAddresses
{
private
final
ConnectPoint
connectPoint
;
// TODO: Should this be IpAddress or IpPrefix?
private
final
Set
<
IpPrefix
>
ipAddresses
;
private
final
MacAddress
macAddress
;
...
...
core/store/dist/src/main/java/org/onlab/onos/store/host/impl/GossipHostStore.java
View file @
a263915
...
...
@@ -43,6 +43,7 @@ import java.util.concurrent.ConcurrentHashMap;
import
static
org
.
onlab
.
onos
.
net
.
host
.
HostEvent
.
Type
.*;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
//TODO: multi-provider, annotation not supported.
/**
* Manages inventory of end-station hosts in distributed data store
* that uses optimistic replication and gossip based techniques.
...
...
core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleHostStore.java
View file @
a263915
...
...
@@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHashMap;
import
static
org
.
onlab
.
onos
.
net
.
host
.
HostEvent
.
Type
.*;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
// TODO: multi-provider, annotation not supported.
/**
* Manages inventory of end-station hosts using trivial in-memory
* implementation.
...
...
Please
register
or
login
to post a comment