Committed by
Gerrit Code Review
Fixing arp event log in OpenstackRoutingArpHandler
Change-Id: I8d7c1737fcceccb201703a009243039db9e40e41
Showing
1 changed file
with
5 additions
and
4 deletions
... | @@ -18,7 +18,6 @@ package org.onosproject.openstacknetworking.routing; | ... | @@ -18,7 +18,6 @@ package org.onosproject.openstacknetworking.routing; |
18 | import org.onlab.packet.ARP; | 18 | import org.onlab.packet.ARP; |
19 | import org.onlab.packet.EthType; | 19 | import org.onlab.packet.EthType; |
20 | import org.onlab.packet.Ethernet; | 20 | import org.onlab.packet.Ethernet; |
21 | -import org.onlab.packet.IPv4; | ||
22 | import org.onlab.packet.Ip4Address; | 21 | import org.onlab.packet.Ip4Address; |
23 | import org.onlab.packet.IpAddress; | 22 | import org.onlab.packet.IpAddress; |
24 | import org.onlab.packet.MacAddress; | 23 | import org.onlab.packet.MacAddress; |
... | @@ -94,11 +93,13 @@ public class OpenstackRoutingArpHandler { | ... | @@ -94,11 +93,13 @@ public class OpenstackRoutingArpHandler { |
94 | checkNotNull(context, "context can not be null"); | 93 | checkNotNull(context, "context can not be null"); |
95 | checkNotNull(ethernet, "ethernet can not be null"); | 94 | checkNotNull(ethernet, "ethernet can not be null"); |
96 | 95 | ||
97 | - log.info("arpEvent called from {} to {}", | 96 | + |
98 | - Ip4Address.valueOf(((IPv4) ethernet.getPayload()).getSourceAddress()).toString(), | ||
99 | - Ip4Address.valueOf(((IPv4) ethernet.getPayload()).getDestinationAddress()).toString()); | ||
100 | ARP arp = (ARP) ethernet.getPayload(); | 97 | ARP arp = (ARP) ethernet.getPayload(); |
101 | 98 | ||
99 | + log.debug("arpEvent called from {} to {}", | ||
100 | + Ip4Address.valueOf(arp.getSenderProtocolAddress()).toString(), | ||
101 | + Ip4Address.valueOf(arp.getTargetProtocolAddress()).toString()); | ||
102 | + | ||
102 | if (arp.getOpCode() != ARP.OP_REQUEST) { | 103 | if (arp.getOpCode() != ARP.OP_REQUEST) { |
103 | return; | 104 | return; |
104 | } | 105 | } | ... | ... |
-
Please register or login to post a comment