commit | 1c68e9a20e803f91d8379bd7cdc8160aed15d305 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Sun Oct 11 02:45:16 2020 +0900 |
committer | Jian Li <pyguni@gmail.com> | Sun Oct 11 02:45:16 2020 +0900 |
tree | 5962de88209a5470e7ee7194008662a00f31f251 | |
parent | 4b5048ada53b8d4dd0c689beac8481ab02ef9409 [diff] |
Fix: assign a default gateway MAC address for unknown IP address Change-Id: I332fa0d571567d25bfd0869f7f42634e82b1bb5e
diff --git a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/impl/K8sSwitchingArpHandler.java b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/impl/K8sSwitchingArpHandler.java index 50f3357..d5c047f 100644 --- a/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/impl/K8sSwitchingArpHandler.java +++ b/apps/k8s-networking/app/src/main/java/org/onosproject/k8snetworking/impl/K8sSwitchingArpHandler.java
@@ -341,8 +341,7 @@ } if (replyMac == null) { - log.debug("Failed to find MAC address for {}", targetIp); - return; + replyMac = MacAddress.valueOf(gatewayMac); } Ethernet ethReply = ARP.buildArpReply(