*/
package org.opendaylight.netvirt.elan.utils;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ExecutionException;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.eclipse.jdt.annotation.Nullable;
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager;
+import org.opendaylight.mdsal.binding.api.DataBroker;
import org.opendaylight.netvirt.elan.l2gw.utils.ElanL2GatewayUtils;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface;
Future<RpcResult<GetEgressActionsForTunnelOutput>> egressActionsOutputItm =
itmRpcService.getEgressActionsForTunnel(getEgressActInputItm);
if (egressActionsOutputItm.get().isSuccessful()) {
- return egressActionsOutputItm.get().getResult().getAction();
+ return new ArrayList<Action>(egressActionsOutputItm.get().getResult().getAction().values());
}
} else {
GetEgressActionsForInterfaceInput getEgressActInput = new GetEgressActionsForInterfaceInputBuilder()
Future<RpcResult<GetEgressActionsForInterfaceOutput>> egressActionsOutputFuture =
interfaceManagerRpcService.getEgressActionsForInterface(getEgressActInput);
if (egressActionsOutputFuture.get().isSuccessful()) {
- return egressActionsOutputFuture.get().getResult().getAction();
+ return new ArrayList<Action>(egressActionsOutputFuture.get().getResult().getAction().values());
}
}
} catch (Exception e) {