mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 21:01:00 +02:00
Fixing arp event log in OpenstackRoutingArpHandler
Change-Id: I8d7c1737fcceccb201703a009243039db9e40e41
This commit is contained in:
parent
279130df4d
commit
f78306f084
@ -18,7 +18,6 @@ package org.onosproject.openstacknetworking.routing;
|
|||||||
import org.onlab.packet.ARP;
|
import org.onlab.packet.ARP;
|
||||||
import org.onlab.packet.EthType;
|
import org.onlab.packet.EthType;
|
||||||
import org.onlab.packet.Ethernet;
|
import org.onlab.packet.Ethernet;
|
||||||
import org.onlab.packet.IPv4;
|
|
||||||
import org.onlab.packet.Ip4Address;
|
import org.onlab.packet.Ip4Address;
|
||||||
import org.onlab.packet.IpAddress;
|
import org.onlab.packet.IpAddress;
|
||||||
import org.onlab.packet.MacAddress;
|
import org.onlab.packet.MacAddress;
|
||||||
@ -94,11 +93,13 @@ public class OpenstackRoutingArpHandler {
|
|||||||
checkNotNull(context, "context can not be null");
|
checkNotNull(context, "context can not be null");
|
||||||
checkNotNull(ethernet, "ethernet can not be null");
|
checkNotNull(ethernet, "ethernet can not be null");
|
||||||
|
|
||||||
log.info("arpEvent called from {} to {}",
|
|
||||||
Ip4Address.valueOf(((IPv4) ethernet.getPayload()).getSourceAddress()).toString(),
|
|
||||||
Ip4Address.valueOf(((IPv4) ethernet.getPayload()).getDestinationAddress()).toString());
|
|
||||||
ARP arp = (ARP) ethernet.getPayload();
|
ARP arp = (ARP) ethernet.getPayload();
|
||||||
|
|
||||||
|
log.debug("arpEvent called from {} to {}",
|
||||||
|
Ip4Address.valueOf(arp.getSenderProtocolAddress()).toString(),
|
||||||
|
Ip4Address.valueOf(arp.getTargetProtocolAddress()).toString());
|
||||||
|
|
||||||
if (arp.getOpCode() != ARP.OP_REQUEST) {
|
if (arp.getOpCode() != ARP.OP_REQUEST) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user