Bump versions by 0.1.0 for next dev cycle
[vpnservice.git] / itm / itm-api / src / main / java / org / opendaylight / vpnservice / itm / api / IITMProvider.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.vpnservice.itm.api;
9 import java.math.BigInteger;
10 import java.util.List;
11
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.rev130715.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.vpnservice.itm.op.rev150701.TunnelList ;
20
21 public interface IITMProvider {
22         // APIs used by i
23     public void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone);
24
25     public void commitTeps();
26
27     public DataBroker getDataBroker();
28
29     public void showTeps();
30     public void showState(TunnelList tunnels);
31
32     public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask,
33                     String gatewayIp, String transportZone);
34    // public void showState(TunnelsState tunnelsState);
35     public void configureTunnelType(String transportZone, String tunnelType);
36
37     
38     /**
39      * Adds the vtep config schema.
40      *
41      * @param vtepConfigSchema
42      *            the vtep config schema
43      */
44     public void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema);
45
46     /**
47      * Gets the vtep config schema.
48      *
49      * @param schemaName
50      *            the schema name
51      * @return the vtep config schema
52      */
53     public VtepConfigSchema getVtepConfigSchema(String schemaName);
54
55     /**
56      * Gets the all vtep config schemas.
57      *
58      * @return the all vtep config schemas
59      */
60     public List<VtepConfigSchema> getAllVtepConfigSchemas();
61
62     /**
63      * Update VTEP schema.
64      *
65      * @param schemaName
66      *            the schema name
67      * @param lstDpnsForAdd
68      *            the lst dpns for add
69      * @param lstDpnsForDelete
70      *            the lst dpns for delete
71      */
72     public void updateVtepSchema(String schemaName, List<BigInteger> lstDpnsForAdd, List<BigInteger> lstDpnsForDelete);
73
74     /**
75      * Delete all vtep schemas.
76      */
77     public void deleteAllVtepSchemas();
78
79     public void configureTunnelMonitorEnabled(boolean monitorEnabled);
80
81     public void configureTunnelMonitorInterval(int interval);
82 }