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
Hyunsun Moon
2016-02-01 23:30:58 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9186613c0fd79c85c62473efdd2fe2326f7a53a5
9186613c
1 parent
10a2070b
Lowered some warning levels
Change-Id: I2a857b1690d462e865821cbe388eb8e5c50ef11a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
apps/cordvtn/src/main/java/org/onosproject/cordvtn/CordVtnArpProxy.java
apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/web/OpenstackNetworkCodec.java
apps/cordvtn/src/main/java/org/onosproject/cordvtn/CordVtnArpProxy.java
View file @
9186613
...
...
@@ -123,8 +123,6 @@ public class CordVtnArpProxy {
* @param gatewayMac gateway mac address
*/
public
void
processArpPacket
(
PacketContext
context
,
Ethernet
ethPacket
,
MacAddress
gatewayMac
)
{
checkArgument
(!
gatewayMac
.
equals
(
MacAddress
.
NONE
));
ARP
arpPacket
=
(
ARP
)
ethPacket
.
getPayload
();
Ip4Address
targetIp
=
Ip4Address
.
valueOf
(
arpPacket
.
getTargetProtocolAddress
());
...
...
@@ -132,6 +130,12 @@ public class CordVtnArpProxy {
return
;
}
if
(
gatewayMac
.
equals
(
MacAddress
.
NONE
))
{
log
.
debug
(
"Gateway mac address is not set, ignoring ARP request"
);
context
.
block
();
return
;
}
Ethernet
ethReply
=
ARP
.
buildArpReply
(
targetIp
,
gatewayMac
,
...
...
apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/web/OpenstackNetworkCodec.java
View file @
9186613
...
...
@@ -57,7 +57,7 @@ public class OpenstackNetworkCodec extends JsonCodec<OpenstackNetwork> {
.
id
(
id
);
if
(
networkInfo
.
path
(
NETWORK_TYPE
).
isMissingNode
())
{
log
.
warn
(
"Network {} has no network type, ignore it."
,
name
);
log
.
debug
(
"Network {} has no network type, ignore it."
,
name
);
return
null
;
}
...
...
@@ -65,7 +65,7 @@ public class OpenstackNetworkCodec extends JsonCodec<OpenstackNetwork> {
try
{
onb
.
networkType
(
OpenstackNetwork
.
NetworkType
.
valueOf
(
networkType
.
toUpperCase
()));
}
catch
(
IllegalArgumentException
e
)
{
log
.
warn
(
"Network {} has unsupported network type {}, ignore it."
,
log
.
debug
(
"Network {} has unsupported network type {}, ignore it."
,
name
,
networkType
);
return
null
;
}
...
...
Please
register
or
login
to post a comment