Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
Charles Chan | f7b1b4b | 2019-01-16 15:30:39 -0800 | [diff] [blame] | 16 | package org.onosproject.portloadbalancer.api; |
Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 17 | |
| 18 | /** |
Charles Chan | f7b1b4b | 2019-01-16 15:30:39 -0800 | [diff] [blame] | 19 | * Port load balancer mode. |
Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 20 | */ |
Charles Chan | f7b1b4b | 2019-01-16 15:30:39 -0800 | [diff] [blame] | 21 | public enum PortLoadBalancerMode { |
Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 22 | /** |
Charles Chan | f7b1b4b | 2019-01-16 15:30:39 -0800 | [diff] [blame] | 23 | * Static port load balancer. |
Charles Chan | 7e6d517 | 2019-01-01 19:36:05 -0800 | [diff] [blame] | 24 | * |
| 25 | * In STATIC mode, all member ports of this load balancer will be used to transmit data as long as it is enabled. |
Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 26 | */ |
| 27 | STATIC, |
| 28 | |
| 29 | /** |
Charles Chan | f7b1b4b | 2019-01-16 15:30:39 -0800 | [diff] [blame] | 30 | * Port load balancer based on LACP. |
Charles Chan | 7e6d517 | 2019-01-01 19:36:05 -0800 | [diff] [blame] | 31 | * |
| 32 | * In LACP mode, we decide whether to use a member port to transmit data or not according to |
| 33 | * the LACP negotiation result. |
Charles Chan | 7f987c5 | 2018-07-31 18:22:46 -0700 | [diff] [blame] | 34 | */ |
| 35 | LACP |
| 36 | } |