2 * Copyright (c) 2015 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.itm.api;
9 import java.math.BigInteger;
10 import java.util.List;
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
13 import org.opendaylight.vpnservice.interfacemgr.exceptions.InterfaceNotFoundException;
14 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
15 import org.opendaylight.vpnservice.mdsalutil.MatchInfo;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
17 //import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.itm.config.rev151102.vtep.config.schemas.VtepConfigSchema;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.itm.config.rev151102.vtep.config.schemas.VtepConfigSchema;
19 //import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.itm.op.rev150701.TunnelsState;
21 public interface IITMProvider {
23 public void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone);
25 public void commitTeps();
27 public DataBroker getDataBroker();
29 public void showTeps();
31 public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask,
32 String gatewayIp, String transportZone);
33 // public void showState(TunnelsState tunnelsState);
34 public void configureTunnelType(String transportZone, String tunnelType);
38 * Adds the vtep config schema.
40 * @param vtepConfigSchema
41 * the vtep config schema
43 public void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema);
46 * Gets the vtep config schema.
50 * @return the vtep config schema
52 public VtepConfigSchema getVtepConfigSchema(String schemaName);
55 * Gets the all vtep config schemas.
57 * @return the all vtep config schemas
59 public List<VtepConfigSchema> getAllVtepConfigSchemas();
66 * @param lstDpnsForAdd
67 * the lst dpns for add
68 * @param lstDpnsForDelete
69 * the lst dpns for delete
71 public void updateVtepSchema(String schemaName, List<BigInteger> lstDpnsForAdd, List<BigInteger> lstDpnsForDelete);
74 * Delete all vtep schemas.
76 public void deleteAllVtepSchemas();
78 public void configureTunnelMonitorEnabled(boolean monitorEnabled);
80 public void configureTunnelMonitorInterval(int interval);