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
tom
2014-09-16 15:12:22 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43526fcc047a1fc3fd284675f5b85053ca0f8132
43526fcc
1 parent
8539ee28
Moved host provider test to be under src/test
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
providers/of/host/src/main/test/org/onlab/onos/provider/of/host/impl/OpenFlowHostProviderTest.java → providers/of/host/src/test/java/org/onlab/onos/provider/of/host/impl/OpenFlowHostProviderTest.java
providers/of/host/src/
main/test
/org/onlab/onos/provider/of/host/impl/OpenFlowHostProviderTest.java
→
providers/of/host/src/
test/java
/org/onlab/onos/provider/of/host/impl/OpenFlowHostProviderTest.java
View file @
43526fc
...
...
@@ -51,7 +51,7 @@ public class OpenFlowHostProviderTest {
private
static
final
VLANID
VLAN
=
VLANID
.
vlanId
();
private
static
final
MACAddress
MAC
=
MACAddress
.
valueOf
(
"00:00:11:00:00:01"
);
private
static
final
MACAddress
BCMAC
=
MACAddress
.
valueOf
(
"ff:ff:ff:ff:ff:ff"
);
private
static
byte
[]
IP
=
new
byte
[]
{
10
,
0
,
0
,
1
};
private
static
final
byte
[]
IP
=
new
byte
[]{
10
,
0
,
0
,
1
};
private
OpenFlowHostProvider
provider
=
new
OpenFlowHostProvider
();
private
TestHostRegistry
hostService
=
new
TestHostRegistry
();
...
...
@@ -242,13 +242,13 @@ public class OpenFlowHostProviderTest {
@Override
public
Set
<
DeviceId
>
getClusterDevices
(
Topology
topology
,
TopologyCluster
cluster
)
{
TopologyCluster
cluster
)
{
return
null
;
}
@Override
public
Set
<
Link
>
getClusterLinks
(
Topology
topology
,
TopologyCluster
cluster
)
{
TopologyCluster
cluster
)
{
return
null
;
}
...
...
@@ -259,13 +259,13 @@ public class OpenFlowHostProviderTest {
@Override
public
Set
<
Path
>
getPaths
(
Topology
topology
,
DeviceId
src
,
DeviceId
dst
,
LinkWeight
weight
)
{
DeviceId
dst
,
LinkWeight
weight
)
{
return
null
;
}
@Override
public
boolean
isInfrastructure
(
Topology
topology
,
ConnectPoint
connectPoint
)
{
ConnectPoint
connectPoint
)
{
//simulate DPID3 as an infrastructure switch
if
(
Dpid
.
dpid
(
connectPoint
.
deviceId
().
uri
()).
equals
(
DPID3
))
{
return
true
;
...
...
@@ -275,7 +275,7 @@ public class OpenFlowHostProviderTest {
@Override
public
boolean
isBroadcastPoint
(
Topology
topology
,
ConnectPoint
connectPoint
)
{
ConnectPoint
connectPoint
)
{
return
false
;
}
...
...
@@ -319,9 +319,9 @@ public class OpenFlowHostProviderTest {
// just things we (and serializers) need
ARP
arp
=
new
ARP
();
arp
.
setSenderProtocolAddress
(
IP
)
.
setSenderHardwareAddress
(
MAC
.
toBytes
())
.
setTargetHardwareAddress
(
BCMAC
.
toBytes
())
.
setTargetProtocolAddress
(
IP
);
.
setSenderHardwareAddress
(
MAC
.
toBytes
())
.
setTargetHardwareAddress
(
BCMAC
.
toBytes
())
.
setTargetProtocolAddress
(
IP
);
Ethernet
eth
=
new
Ethernet
();
eth
.
setEtherType
(
Ethernet
.
TYPE_ARP
)
...
...
Please
register
or
login
to post a comment