2 * Copyright (c) 2016 Cisco Systems Inc 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
9 package org.opendaylight.unimgr.mef.nrp.common;
11 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
12 import org.opendaylight.yang.gen.v1.urn.onf.core.network.module.rev160630.g_forwardingconstruct.FcPort;
15 * Device facing SPI for activating or deactivating a fragment of an NRP
16 * ForwardingConstruct on a single device.
18 public interface ResourceActivator {
21 * Activate a service fragment on the node identified by nodeName.
24 * the name of node in network topology
26 * name of outer activation construct
28 * name of inner activation construct
30 * the fc-port to be activated
32 * the neighbor fc-port
34 * the desired MTU for this forwarding construct
36 public void activate(String nodeName, String outerName, String innerName, FcPort flowPoint, FcPort neighbor,
37 long mtu) throws TransactionCommitFailedException, ResourceActivatorException;
40 * Deactivate a service fragment on the node identified by nodeName.
43 * the name of node in network topology
45 * name of outer deactivation construct
47 * name of inner deactivation construct
49 * the fc-port to be deactivated
51 * the neighbor fc-port
53 * the desired MTU for this forwarding construct
55 public void deactivate(String nodeName, String outerName, String innerName, FcPort flowPoint, FcPort neighbor,
56 long mtu) throws TransactionCommitFailedException, ResourceActivatorException;