mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-21 04:12:23 +02:00
Added debug info to ArpHandler and priorities to RoutingPopulator
Change-Id: I079c5d50b12602ef620dbc6c5812d4508fa0b58d
This commit is contained in:
parent
4a91515f03
commit
6816f25a94
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user