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
Jonathan Hart
2014-10-16 20:44:29 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce430a481584557f3a3f4881484a1ee72f67e91b
ce430a48
1 parent
4d187952
Ported the unit tests for PeerConnectivityManager
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivity.java → apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivityManager.java
apps/sdnip/src/main/java/org/onlab/onos/sdnip/SdnIp.java
apps/sdnip/src/test/java/org/onlab/onos/sdnip/PeerConnectivityManagerTest.java
apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivity.java
→
apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivity
Manager
.java
View file @
ce430a4
...
...
@@ -25,10 +25,10 @@ import org.slf4j.LoggerFactory;
/**
* Manages the connectivity requirements between peers.
*/
public
class
PeerConnectivity
{
public
class
PeerConnectivity
Manager
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
PeerConnectivity
.
class
);
PeerConnectivity
Manager
.
class
);
// TODO these shouldn't be defined here
private
static
final
short
BGP_PORT
=
179
;
...
...
@@ -41,7 +41,7 @@ public class PeerConnectivity {
// TODO this sucks.
private
int
intentId
=
0
;
public
PeerConnectivity
(
SdnIpConfigService
configInfoService
,
public
PeerConnectivity
Manager
(
SdnIpConfigService
configInfoService
,
InterfaceService
interfaceService
,
IntentService
intentService
)
{
this
.
configInfoService
=
configInfoService
;
this
.
interfaceService
=
interfaceService
;
...
...
apps/sdnip/src/main/java/org/onlab/onos/sdnip/SdnIp.java
View file @
ce430a4
...
...
@@ -36,7 +36,7 @@ public class SdnIp implements SdnIpService {
protected
HostService
hostService
;
private
SdnIpConfigReader
config
;
private
PeerConnectivity
peerConnectivity
;
private
PeerConnectivity
Manager
peerConnectivity
;
private
Router
router
;
private
BgpSessionManager
bgpSessionManager
;
...
...
@@ -49,7 +49,7 @@ public class SdnIp implements SdnIpService {
InterfaceService
interfaceService
=
new
HostServiceBasedInterfaceService
(
hostService
);
peerConnectivity
=
new
PeerConnectivity
(
config
,
interfaceService
,
intentService
);
peerConnectivity
=
new
PeerConnectivity
Manager
(
config
,
interfaceService
,
intentService
);
peerConnectivity
.
start
();
router
=
new
Router
(
intentService
,
hostService
,
config
,
interfaceService
);
...
...
@@ -79,4 +79,8 @@ public class SdnIp implements SdnIpService {
public
Collection
<
RouteEntry
>
getRoutes
()
{
return
router
.
getRoutes
();
}
static
String
dpidToUri
(
String
dpid
)
{
return
"of:"
+
dpid
.
replace
(
":"
,
""
);
}
}
...
...
apps/sdnip/src/test/java/org/onlab/onos/sdnip/PeerConnectivityManagerTest.java
0 → 100644
View file @
ce430a4
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment