blob: 233c116c3c89e1cd19629ee61f703ddba6bb2ed8 [file] [log] [blame]
Charles Chan7f987c52018-07-31 18:22:46 -07001/*
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 Chanf7b1b4b2019-01-16 15:30:39 -080016package org.onosproject.portloadbalancer.api;
Charles Chan7f987c52018-07-31 18:22:46 -070017
18/**
Charles Chanf7b1b4b2019-01-16 15:30:39 -080019 * Port load balancer mode.
Charles Chan7f987c52018-07-31 18:22:46 -070020 */
Charles Chanf7b1b4b2019-01-16 15:30:39 -080021public enum PortLoadBalancerMode {
Charles Chan7f987c52018-07-31 18:22:46 -070022 /**
Charles Chanf7b1b4b2019-01-16 15:30:39 -080023 * Static port load balancer.
Charles Chan7e6d5172019-01-01 19:36:05 -080024 *
25 * In STATIC mode, all member ports of this load balancer will be used to transmit data as long as it is enabled.
Charles Chan7f987c52018-07-31 18:22:46 -070026 */
27 STATIC,
28
29 /**
Charles Chanf7b1b4b2019-01-16 15:30:39 -080030 * Port load balancer based on LACP.
Charles Chan7e6d5172019-01-01 19:36:05 -080031 *
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 Chan7f987c52018-07-31 18:22:46 -070034 */
35 LACP
36}