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
alshabib
2015-06-05 14:45:57 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
48dd9a1b1fb7f318899e08184e2f6733998adab2
48dd9a1b
1 parent
0603afb0
cord fixes
Change-Id: I63ea3b451a70c978172821ff7c81c22e2dfc1e21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
apps/cordfabric/src/main/java/org/onosproject/cordfabric/CordFabricManager.java
apps/xos-integration/src/main/java/org/onosproject/xosintegration/OnosXOSIntegrationManager.java
apps/cordfabric/src/main/java/org/onosproject/cordfabric/CordFabricManager.java
View file @
48dd9a1
...
...
@@ -120,11 +120,11 @@ public class CordFabricManager implements FabricService {
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_TCP
)
.
matchTcpSrc
(
ofPort
)
.
matchInPort
(
PortNumber
.
portNumber
(
5
))
.
matchInPort
(
PortNumber
.
portNumber
(
1
))
.
build
();
TrafficTreatment
up
=
DefaultTrafficTreatment
.
builder
()
.
setOutput
(
PortNumber
.
portNumber
(
5
))
.
setOutput
(
PortNumber
.
portNumber
(
1
))
.
build
();
TrafficTreatment
down
=
DefaultTrafficTreatment
.
builder
()
...
...
apps/xos-integration/src/main/java/org/onosproject/xosintegration/OnosXOSIntegrationManager.java
View file @
48dd9a1
...
...
@@ -339,9 +339,10 @@ public class OnosXOSIntegrationManager implements VoltTenantService {
if
(
json
.
get
(
"computeNodeName"
)
!=
null
)
{
ConnectPoint
point
=
nodeToPort
.
get
(
json
.
get
(
"computeNodeName"
).
asString
());
ConnectPoint
fromPoint
=
newTenant
.
port
();
provisionFabric
(
VlanId
.
vlanId
(
Short
.
parseShort
(
newTenant
.
vlanId
())),
point
);
point
,
fromPoint
);
}
}
...
...
@@ -402,7 +403,7 @@ public class OnosXOSIntegrationManager implements VoltTenantService {
flowObjectiveService
.
forward
(
FABRIC_PORT
.
deviceId
(),
forwardToGateway
);
}
private
void
provisionFabric
(
VlanId
vlanId
,
ConnectPoint
point
)
{
private
void
provisionFabric
(
VlanId
vlanId
,
ConnectPoint
point
,
ConnectPoint
fromPoint
)
{
//String json = "{\"vlan\":" + vlanId + ",\"ports\":[";
//json += "{\"device\":\"" + FABRIC_DEVICE_ID.toString() + "\",\"port\":\""
// + FABRIC_OLT_CONNECT_POINT.toString() + "\"},";
...
...
@@ -417,8 +418,8 @@ public class OnosXOSIntegrationManager implements VoltTenantService {
JsonObject
cp2
=
new
JsonObject
();
cp1
.
add
(
"device"
,
point
.
deviceId
().
toString
());
cp1
.
add
(
"port"
,
point
.
port
().
toLong
());
cp2
.
add
(
"device"
,
FABRIC_DEVICE_ID
.
toString
());
cp2
.
add
(
"port"
,
FABRIC_OLT_CONNECT_POINT
.
toStri
ng
());
cp2
.
add
(
"device"
,
fromPoint
.
deviceId
()
.
toString
());
cp2
.
add
(
"port"
,
fromPoint
.
port
().
toLo
ng
());
array
.
add
(
cp1
);
array
.
add
(
cp2
);
node
.
add
(
"ports"
,
array
);
...
...
Please
register
or
login
to post a comment