Patch 4: Move check to caller of RoutingService::programDefaultRouteEntry()
Patch 5: noop
Change-Id: I115febb115134fb7c7af0d0264700c769c4e95ad
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
String defaultGatewayMacAddress,
String gatewayIp,
Action actionForNodeDefaultRoute) {
+ // TODO: As of Helium, mac address for default gateway is required (bug 1705).
+ if (defaultGatewayMacAddress == null) {
+ logger.error("ProgramDefaultRoute mac not provided. gatewayIp:{} node:{} action:{}",
+ defaultGatewayMacAddress, gatewayIp, node, actionForNodeDefaultRoute);
+ return new Status(StatusCode.NOTIMPLEMENTED); // Bug 1705
+ }
+
Status status;
try {
InetAddress inetAddress = InetAddress.getByName(gatewayIp);