The vmware_nsx.services.lbaas.nsx_v3.lb_utils
Module¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
get_lb_flavor_size
(flavor_plugin, context, flavor_id)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
get_lb_router_id
(context, plugin, lb)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
get_network_from_subnet
(context, plugin, subnet_id)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
get_nsx_resource_binding
(client, name, id)¶ Parameters: - client – nsx resource client
- name – name of neutron object
- id – id of neutron object
Returns: return the nsx resource id
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
get_router_from_network
(context, plugin, subnet_id)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.
validate_lb_subnet
(context, plugin, subnet_id)¶ Validate LB subnet before creating loadbalancer on it.
To create a loadbalancer, the network has to be either an external network or private network that connects to a tenant router. It will throw exception if the network doesn’t meet this requirement.
Parameters: - context – context
- plugin – core plugin
- subnet_id – loadbalancer’s subnet id
Returns: True if subnet meet requirement, otherwise return False