[--may-exist
| --add-duplicate
] lb-add
lb vip ips [protocol]
Creates a new load balancer named lb with the provided vip
and ips or adds the vip to an existing lb. vip should be a
virtual IP address (or an IP address and a port number
with :
as a separator). Examples for vip are 192.168.1.4
,
fd0f::1
, and 192.168.1.5:8080
. ips should be comma
separated IP endpoints (or comma separated IP addresses
and port numbers with :
as a separator). ips must be the
same address family as vip. Examples for ips are
10.0.0.1,10.0.0.2
or [fdef::1]:8800,[fdef::2]:8800
.
The optional argument protocol must be either tcp
or udp
.
This argument is useful when a port number is provided as
part of the vip. If the protocol is unspecified and a port
number is provided as part of the vip, OVN assumes the
protocol to be tcp
.
It is an error if the vip already exists in the load
balancer named lb, unless --may-exist
is specified. With
--add-duplicate
, the command really creates a new load
balancer with a duplicate name.
The following example adds a load balancer.
lb-add lb0 30.0.0.10:80
192.168.10.10:80,192.168.10.20:80,192.168.10.30:80 udp
[--if-exists
] lb-del
lb [vip]
Deletes lb or the vip from lb. If vip is supplied, only
the vip will be deleted from the lb. If only the lb is
supplied, the lb will be deleted. It is an error if vip
does not already exist in lb, unless --if-exists
is
specified.
lb-list
[lb]
Lists the LBs. If lb is also specified, then only the
specified lb will be listed.
[--may-exist
] ls-lb-add
switch lb
Adds the specified lb to switch. It is an error if a load
balancer named lb already exists in the switch, unless
--may-exist
is specified.
[--if-exists
] ls-lb-del
switch [lb]
Removes lb from switch. If only switch is supplied, all
the LBs from the logical switch are removed. If lb is also
specified, then only the lb will be removed from the
logical switch. It is an error if lb does not exist in the
switch, unless --if-exists
is specified.
ls-lb-list
switch
Lists the LBs for the given switch.
[--may-exist
] lr-lb-add
router lb
Adds the specified lb to router. It is an error if a load
balancer named lb already exists in the router, unless
--may-exist
is specified.
[--if-exists
] lr-lb-del
router [lb]
Removes lb from router. If only router is supplied, all
the LBs from the logical router are removed. If lb is also
specified, then only the lb will be removed from the
logical router. It is an error if lb does not exist in the
router, unless --if-exists
is specified.
lr-lb-list
router
Lists the LBs for the given router.