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.genius.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.apache.felix.service.command.CommandSession;
14 import org.opendaylight.genius.interfacemanager.exceptions.InterfaceNotFoundException;
15 import org.opendaylight.genius.mdsalutil.ActionInfo;
16 import org.opendaylight.genius.mdsalutil.MatchInfo;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
18 //import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.itm.config.rev151102.vtep.config.schemas.VtepConfigSchema;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.VtepConfigSchema;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.TunnelList ;
21 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase;
22 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.tunnels_state.StateTunnelList;
24 public interface IITMProvider {
26 public void createLocalCache(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask, String gatewayIp, String transportZone, CommandSession session);
28 public void commitTeps();
30 public DataBroker getDataBroker();
32 public void showTeps(CommandSession session);
34 public void showState(List<StateTunnelList> tunnels, CommandSession session);
36 public void showCache(String cacheName);
38 public void deleteVtep(BigInteger dpnId, String portName, Integer vlanId, String ipAddress, String subnetMask,
39 String gatewayIp, String transportZone, CommandSession session);
40 // public void showState(TunnelsState tunnelsState);
41 public void configureTunnelType(String transportZone, String tunnelType);
45 * Adds the vtep config schema.
47 * @param vtepConfigSchema
48 * the vtep config schema
50 public void addVtepConfigSchema(VtepConfigSchema vtepConfigSchema);
53 * Gets the vtep config schema.
57 * @return the vtep config schema
59 public VtepConfigSchema getVtepConfigSchema(String schemaName);
62 * Gets the all vtep config schemas.
64 * @return the all vtep config schemas
66 public List<VtepConfigSchema> getAllVtepConfigSchemas();
73 * @param lstDpnsForAdd
74 * the lst dpns for add
75 * @param lstDpnsForDelete
76 * the lst dpns for delete
78 public void updateVtepSchema(String schemaName, List<BigInteger> lstDpnsForAdd, List<BigInteger> lstDpnsForDelete);
81 * Delete all vtep schemas.
83 public void deleteAllVtepSchemas();
85 public void configureTunnelMonitorParams(boolean monitorEnabled, String monitorProtocol);
87 public void configureTunnelMonitorInterval(int interval);
89 public void addExternalEndpoint(java.lang.Class<? extends TunnelTypeBase> tunType, IpAddress dcgwIP);
91 public void remExternalEndpoint(java.lang.Class<? extends TunnelTypeBase> tunType, IpAddress dcgwIP);
93 public boolean validateIP (final String ip);