Committed by
Gerrit Code Review
Separate HandlerBehaviour for Port administrative state
Change-Id: If15e88d92a4b6a83eba6b0162d4a5e29fba438c6
Showing
2 changed files
with
33 additions
and
7 deletions
1 | +/* | ||
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 | + */ | ||
16 | +package org.onosproject.net.behaviour; | ||
17 | + | ||
18 | +import org.onosproject.net.device.PortDescription; | ||
19 | +import org.onosproject.net.driver.HandlerBehaviour; | ||
20 | + | ||
21 | +/** | ||
22 | + * Means to administratively enable/disable a logical port at the device. | ||
23 | + */ | ||
24 | +public interface PortAdmin extends HandlerBehaviour { | ||
25 | + | ||
26 | + /** | ||
27 | + * Enable/disable administratively a port. | ||
28 | + * | ||
29 | + * @param port a port description containing the desired port state | ||
30 | + */ | ||
31 | + void enable(PortDescription port); | ||
32 | + | ||
33 | +} |
... | @@ -37,11 +37,4 @@ public interface PortConfig extends HandlerBehaviour { | ... | @@ -37,11 +37,4 @@ public interface PortConfig extends HandlerBehaviour { |
37 | */ | 37 | */ |
38 | void removeQoS(PortDescription port); | 38 | void removeQoS(PortDescription port); |
39 | 39 | ||
40 | - /** | ||
41 | - * Enable/disable administratively a port. | ||
42 | - * | ||
43 | - * @param port a port description containing the desired port state | ||
44 | - */ | ||
45 | - void enable(PortDescription port); | ||
46 | - | ||
47 | } | 40 | } | ... | ... |
-
Please register or login to post a comment