changing port numbers to port descriptions in port config
Change-Id: Icc719d4b7007f815aefe5171909c96eceb78d6e9
Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -16,7 +16,7 @@ | ... | @@ -16,7 +16,7 @@ |
16 | package org.onosproject.net.behaviour; | 16 | package org.onosproject.net.behaviour; |
17 | 17 | ||
18 | import com.google.common.primitives.UnsignedInteger; | 18 | import com.google.common.primitives.UnsignedInteger; |
19 | -import org.onosproject.net.PortNumber; | 19 | +import org.onosproject.net.device.PortDescription; |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * Means to configure a logical port at the device. | 22 | * Means to configure a logical port at the device. |
... | @@ -25,22 +25,22 @@ public interface PortConfig { | ... | @@ -25,22 +25,22 @@ public interface PortConfig { |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * Apply QoS configuration on a device. | 27 | * Apply QoS configuration on a device. |
28 | - * @param port a port number | 28 | + * @param port a port description |
29 | * @param queueId an unsigned integer | 29 | * @param queueId an unsigned integer |
30 | */ | 30 | */ |
31 | - void applyQoS(PortNumber port, UnsignedInteger queueId); | 31 | + void applyQoS(PortDescription port, UnsignedInteger queueId); |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Remove a QoS configuration. | 34 | * Remove a QoS configuration. |
35 | - * @param port a port number | 35 | + * @param port a port description |
36 | */ | 36 | */ |
37 | - void removeQoS(PortNumber port); | 37 | + void removeQoS(PortDescription port); |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Enable/disable administratively a port. | 40 | * Enable/disable administratively a port. |
41 | - * @param port a port number | 41 | + * |
42 | - * @param state a boolean indicating state | 42 | + * @param port a port description containing the desired port state |
43 | */ | 43 | */ |
44 | - void setEnabled(PortNumber port, boolean state); | 44 | + void enable(PortDescription port); |
45 | 45 | ||
46 | } | 46 | } | ... | ... |
-
Please register or login to post a comment