blob: a94f59780e069a31307378aee21862b3563bc0b5 [file] [log] [blame]
Yuta HIGUCHId0f8d892018-04-09 12:14:00 -07001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.odtn.behaviour;
17
18import java.util.List;
19
20import org.onosproject.net.driver.HandlerBehaviour;
21
22import com.google.common.annotations.Beta;
23
24/**
25 * Behaviour for Transceiver.
26 */
27@Beta
28public interface ConfigurableTransceiver extends HandlerBehaviour {
29
30 /**
31 * Generate configuration to enable/disable transceiver.
32 *
33 * @param componentName to enable/disable
34 * @param enable or disable
35 * @return XML documents (List to handle configuration with multiple-roots)
36 */
37 // return type and how component get specified are likely to change in future
38 @Beta
39 List<CharSequence> enable(String componentName, boolean enable);
40}