Flavio Castro
Committed by Gerrit Code Review

Added debug info to ArpHandler and priorities to RoutingPopulator

Change-Id: I079c5d50b12602ef620dbc6c5812d4508fa0b58d
......@@ -227,13 +227,11 @@ public class ArpHandler {
.setSourceMACAddress(targetMac.toBytes())
.setEtherType(Ethernet.TYPE_ARP).setPayload(arpReply);
HostId dstId = HostId.hostId(
MacAddress.valueOf(arpReply.getTargetHardwareAddress()),
vlanId);
MacAddress hostMac = MacAddress.valueOf(arpReply.getTargetHardwareAddress());
HostId dstId = HostId.hostId(hostMac, vlanId);
Host dst = srManager.hostService.getHost(dstId);
if (dst == null) {
log.warn("Cannot send ARP response to unknown device");
log.warn("Cannot send ARP response to host {}", dstId);
return;
}
......
......@@ -260,7 +260,7 @@ public class RoutingRulePopulator {
.makePermanent()
.nextStep(nextId)
.withSelector(selector)
.withPriority(100)
.withPriority(2000 * ipPrefix.prefixLength())
.withFlag(ForwardingObjective.Flag.SPECIFIC);
if (treatment != null) {
fwdBuilder.withTreatment(treatment);
......