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-15 11:43:45 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e0aac0685a87960e61d7314ae85ec104b3ddb22
5e0aac06
1 parent
dc711bd5
Cleanup some commented out code from PeerConnectivity
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
54 deletions
apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivity.java
apps/sdnip/src/main/java/org/onlab/onos/sdnip/PeerConnectivity.java
View file @
5e0aac0
...
...
@@ -123,18 +123,7 @@ public class PeerConnectivity {
// TODO: The usage of PacketMatchBuilder will be improved, then we
// only need to new the PacketMatchBuilder once.
// By then, the code here will be improved accordingly.
/*PacketMatch packetMatch = new PacketMatchBuilder().setEtherType(
Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_TCP)
.setSrcIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstTcpPort(BGP_PORT)
.build();
*/
TrafficSelector
selector
=
DefaultTrafficSelector
.
builder
()
TrafficSelector
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_TCP
)
.
matchIPSrc
(
IpPrefix
.
valueOf
(
bgpdAddress
.
toRealInt
(),
IPV4_BIT_LENGTH
))
...
...
@@ -155,14 +144,6 @@ public class PeerConnectivity {
// install intent for BGP path from BGPd to BGP peer matching
// source TCP port 179
/*packetMatch = new PacketMatchBuilder().setEtherType(Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_TCP)
.setSrcIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.setSrcTcpPort(BGP_PORT)
.build();*/
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_TCP
)
...
...
@@ -181,14 +162,6 @@ public class PeerConnectivity {
// install intent for reversed BGP path from BGP peer to BGPd
// matching destination TCP port 179
/*packetMatch = new PacketMatchBuilder().setEtherType(Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_TCP)
.setSrcIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstTcpPort(BGP_PORT)
.build();*/
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_TCP
)
...
...
@@ -207,14 +180,6 @@ public class PeerConnectivity {
// install intent for reversed BGP path from BGP peer to BGPd
// matching source TCP port 179
/*packetMatch = new PacketMatchBuilder().setEtherType(Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_TCP)
.setSrcIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.setSrcTcpPort(BGP_PORT)
.build();*/
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_TCP
)
...
...
@@ -283,15 +248,6 @@ public class PeerConnectivity {
ConnectPoint
bgpdPeerConnectPoint
=
peerInterface
.
connectPoint
();
// install intent for ICMP path from BGPd to BGP peer
/*PacketMatch packetMatch =
new PacketMatchBuilder().setEtherType(
Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_ICMP)
.setSrcIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.build();*/
TrafficSelector
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_ICMP
)
...
...
@@ -310,15 +266,6 @@ public class PeerConnectivity {
+
" {}"
,
bgpdAddress
,
bgpdPeerAddress
,
intent
);
// install intent for reversed ICMP path from BGP peer to BGPd
/*packetMatch = new PacketMatchBuilder().setEtherType(
Ethernet.TYPE_IPV4)
.setIpProto(PROTOCOL_ICMP)
.setSrcIpNet(new Ip4Prefix(bgpdPeerAddress,
(short) Ip4Address.BIT_LENGTH))
.setDstIpNet(new Ip4Prefix(bgpdAddress,
(short) Ip4Address.BIT_LENGTH))
.build();*/
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
matchIPProtocol
(
IPv4
.
PROTOCOL_ICMP
)
...
...
Please
register
or
login
to post a comment