Update UNI
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / api / IUnimgrConsoleProvider.java
1 /*
2  * Copyright (c) 2015 CableLabs 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.unimgr.api;
9
10 import java.util.List;
11
12 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.Evc;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.EvcAugmentation;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.UniAugmentation;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.evc.UniDest;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.evc.UniSource;
19 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link;
20 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
21
22 public interface IUnimgrConsoleProvider extends AutoCloseable {
23
24     boolean addUni(UniAugmentation uni);
25
26     boolean updateUni(UniAugmentation uni);
27
28     boolean removeUni(IpAddress ipAddress);
29
30     List<UniAugmentation> listUnis(LogicalDatastoreType dataStoreType);
31
32     UniAugmentation getUni(IpAddress ipAddress);
33
34     boolean removeEvc(String uuid);
35
36     boolean addEvc(EvcAugmentation evc);
37
38     Evc getEvc(String uuid);
39
40     boolean updateEvc(InstanceIdentifier<Link> evcKey, EvcAugmentation evc, UniSource uniSource, UniDest uniDest);
41 }