blob: e0ff0e7fea098c510e9056b3335c92d62be583fe [file] [log] [blame]
samuel8d6b0a92015-07-11 13:22:57 +08001/*
2 * Copyright 2015 Open Networking Laboratory
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.net.behaviour;
17
18import java.util.Collection;
19
20import org.onosproject.net.device.PortDescription;
21import org.onosproject.net.driver.HandlerBehaviour;
22
23/**
24 * Behaviour for handling various drivers for bridge configurations.
25 */
26public interface BridgeConfig extends HandlerBehaviour {
27
28 /**
29 * Add a bridge.
30 *
31 * @param bridgeName bridge name
32 */
33 void addBridge(BridgeName bridgeName);
34
35 /**
36 * Remove a bridge.
37 *
38 * @param bridgeName bridge name
39 */
40 void deleteBridge(BridgeName bridgeName);
41
42 /**
43 * Remove a bridge.
44 *
45 * @return bridge collection
46 */
47 Collection<BridgeDescription> getBridges();
48
49 /**
50 * Add a logical/virtual port.
51 *
52 * @param port port number
53 */
54 void addPort(PortDescription port);
55
56 /**
57 * Delete a logical/virtual port.
58 *
59 * @param port port number
60 */
61 void deletePort(PortDescription port);
62
63 /**
64 * Delete a logical/virtual port.
65 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070066 * @return collection of port
samuel8d6b0a92015-07-11 13:22:57 +080067 */
68 Collection<PortDescription> getPorts();
69}