Merge "ITM: Fix for tunnel ports not getting deleted."
[genius.git] / itm / itm-api / src / main / java / org / opendaylight / genius / itm / api / IITMProvider.java
1 /*
2  * Copyright (c) 2016 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.genius.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.genius.interfacemanager.exceptions.InterfaceNotFoundException;
14 import org.opendaylight.genius.mdsalutil.ActionInfo;
15 import org.opendaylight.genius.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.genius.itm.config.rev160406.vtep.config.schemas.VtepConfigSchema;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.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
31     public void showState(TunnelList tunnels);
32
33     public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask,
34                            String gatewayIp, String transportZone);
35     // public void showState(TunnelsState tunnelsState);
36     public void configureTunnelType(String transportZone, String tunnelType);
37
38
39     /**
40      * Adds the vtep config schema.
41      *
42      * @param vtepConfigSchema
43      *            the vtep config schema
44      */
45     public void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema);
46
47     /**
48      * Gets the vtep config schema.
49      *
50      * @param schemaName
51      *            the schema name
52      * @return the vtep config schema
53      */
54     public VtepConfigSchema getVtepConfigSchema(String schemaName);
55
56     /**
57      * Gets the all vtep config schemas.
58      *
59      * @return the all vtep config schemas
60      */
61     public List<VtepConfigSchema> getAllVtepConfigSchemas();
62
63     /**
64      * Update VTEP schema.
65      *
66      * @param schemaName
67      *            the schema name
68      * @param lstDpnsForAdd
69      *            the lst dpns for add
70      * @param lstDpnsForDelete
71      *            the lst dpns for delete
72      */
73     public void updateVtepSchema(String schemaName, List<BigInteger> lstDpnsForAdd, List<BigInteger> lstDpnsForDelete);
74
75     /**
76      * Delete all vtep schemas.
77      */
78     public void deleteAllVtepSchemas();
79
80     public void configureTunnelMonitorParams(boolean monitorEnabled, String monitorProtocol);
81
82     public void configureTunnelMonitorInterval(int interval);
83 }