New Package dealing with device rollback
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / transaction / delete / Delete.java
1 /*
2  * Copyright © 2024 Smartoptics 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
9 package org.opendaylight.transportpce.renderer.provisiondevice.transaction.delete;
10
11 import java.util.List;
12
13 /**
14  * A class capable of deleting service connections/interfaces
15  * may implement this interface.
16  */
17 public interface Delete {
18
19     /**
20      * Delete cross connection.
21      * Typically, deleted before interfaces.
22      */
23     List<String> deleteCrossConnect(String deviceId, String connectionNumber, boolean isOtn);
24
25     /**
26      * Delete an interface.
27      * Typically, deleted after the cross connection.
28      */
29     boolean deleteInterface(String nodeId, String interfaceId);
30 }