X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=vpnservice.git;a=blobdiff_plain;f=itm%2Fitm-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fitm%2Fapi%2FIITMProvider.java;fp=itm%2Fitm-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fitm%2Fapi%2FIITMProvider.java;h=c45b982d920eb76ef8df39e9358f606ae7996edd;hp=5610422dde90b940e5ab50e2f3fc797a354aea87;hb=04f73a9e43b63c4c3c1ae2214562741f8bc25c85;hpb=10fe581ba61a6ea7df588bd5ec410f2787648512 diff --git a/itm/itm-api/src/main/java/org/opendaylight/vpnservice/itm/api/IITMProvider.java b/itm/itm-api/src/main/java/org/opendaylight/vpnservice/itm/api/IITMProvider.java index 5610422d..c45b982d 100644 --- a/itm/itm-api/src/main/java/org/opendaylight/vpnservice/itm/api/IITMProvider.java +++ b/itm/itm-api/src/main/java/org/opendaylight/vpnservice/itm/api/IITMProvider.java @@ -6,7 +6,76 @@ * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.vpnservice.itm.api; +import java.math.BigInteger; +import java.util.List; + +import org.opendaylight.controller.md.sal.binding.api.DataBroker; +import org.opendaylight.vpnservice.interfacemgr.exceptions.InterfaceNotFoundException; +import org.opendaylight.vpnservice.mdsalutil.ActionInfo; +import org.opendaylight.vpnservice.mdsalutil.MatchInfo; +import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress; +//import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.itm.config.rev151102.vtep.config.schemas.VtepConfigSchema; +import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.itm.config.rev151102.vtep.config.schemas.VtepConfigSchema; +//import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.itm.op.rev150701.TunnelsState; public interface IITMProvider { + // APIs used by i + public void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone); + + public void commitTeps(); + + public DataBroker getDataBroker(); + + public void showTeps(); + + public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, + String gatewayIp, String transportZone); + // public void showState(TunnelsState tunnelsState); + public void configureTunnelType(String transportZone, String tunnelType); + + + /** + * Adds the vtep config schema. + * + * @param vtepConfigSchema + * the vtep config schema + */ + public void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema); + + /** + * Gets the vtep config schema. + * + * @param schemaName + * the schema name + * @return the vtep config schema + */ + public VtepConfigSchema getVtepConfigSchema(String schemaName); + + /** + * Gets the all vtep config schemas. + * + * @return the all vtep config schemas + */ + public List getAllVtepConfigSchemas(); + + /** + * Update VTEP schema. + * + * @param schemaName + * the schema name + * @param lstDpnsForAdd + * the lst dpns for add + * @param lstDpnsForDelete + * the lst dpns for delete + */ + public void updateVtepSchema(String schemaName, List lstDpnsForAdd, List lstDpnsForDelete); + + /** + * Delete all vtep schemas. + */ + public void deleteAllVtepSchemas(); + + public void configureTunnelMonitorEnabled(boolean monitorEnabled); + public void configureTunnelMonitorInterval(int interval); }