Committed by
Gerrit Code Review
ONOS-2708
Add implementation of getting ovsdb ports or bridges in the ovsdb node. Change-Id: If31af08ccb90a29bc800a79f332dae2bc497b105
Showing
4 changed files
with
78 additions
and
69 deletions
1 | -/* | 1 | +/* |
2 | - * Copyright 2015 Open Networking Laboratory | 2 | + * Copyright 2015 Open Networking Laboratory |
3 | - * | 3 | + * |
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | - * you may not use this file except in compliance with 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 | 6 | + * You may obtain a copy of the License at |
7 | - * | 7 | + * |
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
9 | - * | 9 | + * |
10 | - * Unless required by applicable law or agreed to in writing, software | 10 | + * Unless required by applicable law or agreed to in writing, software |
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | - * See the License for the specific language governing permissions and | 13 | + * See the License for the specific language governing permissions and |
14 | - * limitations under the License. | 14 | + * limitations under the License. |
15 | - */ | 15 | + */ |
16 | -package org.onosproject.net.behaviour; | 16 | +package org.onosproject.net.behaviour; |
17 | - | 17 | + |
18 | -import java.util.Collection; | 18 | +import java.util.Collection; |
19 | - | 19 | +import java.util.Set; |
20 | -import org.onosproject.net.device.PortDescription; | 20 | + |
21 | -import org.onosproject.net.driver.HandlerBehaviour; | 21 | +import org.onosproject.net.PortNumber; |
22 | - | 22 | +import org.onosproject.net.device.PortDescription; |
23 | -/** | 23 | +import org.onosproject.net.driver.HandlerBehaviour; |
24 | - * Behaviour for handling various drivers for bridge configurations. | 24 | + |
25 | - */ | 25 | +/** |
26 | -public interface BridgeConfig extends HandlerBehaviour { | 26 | + * Behaviour for handling various drivers for bridge configurations. |
27 | - | 27 | + */ |
28 | - /** | 28 | +public interface BridgeConfig extends HandlerBehaviour { |
29 | - * Add a bridge. | 29 | + |
30 | - * | 30 | + /** |
31 | - * @param bridgeName bridge name | 31 | + * Add a bridge. |
32 | - */ | 32 | + * |
33 | - void addBridge(BridgeName bridgeName); | 33 | + * @param bridgeName bridge name |
34 | - | 34 | + */ |
35 | - /** | 35 | + void addBridge(BridgeName bridgeName); |
36 | - * Remove a bridge. | 36 | + |
37 | - * | 37 | + /** |
38 | - * @param bridgeName bridge name | 38 | + * Remove a bridge. |
39 | - */ | 39 | + * |
40 | - void deleteBridge(BridgeName bridgeName); | 40 | + * @param bridgeName bridge name |
41 | - | 41 | + */ |
42 | - /** | 42 | + void deleteBridge(BridgeName bridgeName); |
43 | - * Remove a bridge. | 43 | + |
44 | - * | 44 | + /** |
45 | - * @return bridge collection | 45 | + * Remove a bridge. |
46 | - */ | 46 | + * |
47 | - Collection<BridgeDescription> getBridges(); | 47 | + * @return bridge collection |
48 | - | 48 | + */ |
49 | - /** | 49 | + Collection<BridgeDescription> getBridges(); |
50 | - * Add a logical/virtual port. | 50 | + |
51 | - * | 51 | + /** |
52 | - * @param port port number | 52 | + * Add a logical/virtual port. |
53 | - */ | 53 | + * |
54 | - void addPort(PortDescription port); | 54 | + * @param port port number |
55 | - | 55 | + */ |
56 | - /** | 56 | + void addPort(PortDescription port); |
57 | - * Delete a logical/virtual port. | 57 | + |
58 | - * | 58 | + /** |
59 | - * @param port port number | 59 | + * Delete a logical/virtual port. |
60 | - */ | 60 | + * |
61 | - void deletePort(PortDescription port); | 61 | + * @param port port number |
62 | - | 62 | + */ |
63 | - /** | 63 | + void deletePort(PortDescription port); |
64 | - * Delete a logical/virtual port. | 64 | + |
65 | - * | 65 | + /** |
66 | - * @return collection of port | 66 | + * Delete a logical/virtual port. |
67 | - */ | 67 | + * |
68 | - Collection<PortDescription> getPorts(); | 68 | + * @return collection of port |
69 | -} | 69 | + */ |
70 | + Collection<PortDescription> getPorts(); | ||
71 | + | ||
72 | + /** | ||
73 | + * Get a collection of port. | ||
74 | + * | ||
75 | + * @return portNumbers set of PortNumber | ||
76 | + */ | ||
77 | + Set<PortNumber> getPortNumbers(); | ||
78 | +} | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment