mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 18:02:05 +02:00
Fix: enable resolve MAC address in ARP proxy mode at gateway node
Change-Id: I43e8e9542e9ff946f44d94990d440e7c401b4956
This commit is contained in:
parent
70a2c3f89f
commit
0665396cec
@ -447,10 +447,6 @@ public final class OpenstackSwitchingArpHandler {
|
||||
}
|
||||
|
||||
private void setDefaultArpRule(OpenstackNode openstackNode, boolean install) {
|
||||
if (openstackNode.type().equals(GATEWAY)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (arpMode.equals(ARP_PROXY_MODE)) {
|
||||
TrafficSelector selector = DefaultTrafficSelector.builder()
|
||||
.matchEthType(EthType.EtherType.ARP.ethType().toShort())
|
||||
@ -470,6 +466,12 @@ public final class OpenstackSwitchingArpHandler {
|
||||
install
|
||||
);
|
||||
} else if (arpMode.equals(ARP_BROADCAST_MODE)) {
|
||||
// TODO: currently, do not install any rules to GW in broadcast mode;
|
||||
// need to add Floating IP to MAC mapping flow rules
|
||||
if (openstackNode.type().equals(GATEWAY)) {
|
||||
return;
|
||||
}
|
||||
|
||||
TrafficSelector selector = DefaultTrafficSelector.builder()
|
||||
.matchEthType(EthType.EtherType.ARP.ethType().toShort())
|
||||
.matchArpOp(ARP.OP_REQUEST)
|
||||
|
Loading…
x
Reference in New Issue
Block a user