Fix: enable resolve MAC address in ARP proxy mode at gateway node

Change-Id: I43e8e9542e9ff946f44d94990d440e7c401b4956
This commit is contained in:
Jian Li 2018-05-08 18:36:21 +09:00
parent 70a2c3f89f
commit 0665396cec

View File

@ -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)