2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.vpnservice.interfacemgr.renderer.hwvtep.confighelpers;
10 import com.google.common.util.concurrent.ListenableFuture;
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.interfacemgr.rev150331.ParentRefs;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
18 import java.math.BigInteger;
19 import java.util.ArrayList;
20 import java.util.List;
22 public class HwVTEPInterfaceConfigAddHelper {
23 private static final Logger LOG = LoggerFactory.getLogger(HwVTEPInterfaceConfigAddHelper.class);
25 public static List<ListenableFuture<Void>> addConfiguration(DataBroker dataBroker, ParentRefs parentRefs,
26 Interface interfaceNew) {
27 List<ListenableFuture<Void>> futures = new ArrayList<ListenableFuture<Void>>();
28 LOG.debug("adding hwvtep configuration for {}", interfaceNew.getName());
30 // TODO create hwvtep through ovsdb plugin