The vmware_nsx.services.lbaas.nsx_v3.lb_utils Module¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.convert_l7policy_to_lb_rule(context, policy)¶
-
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_router_from_network(context, plugin, subnet_id)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.get_rule_actions(context, l7policy)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.get_rule_match_conditions(policy)¶
-
vmware_nsx.services.lbaas.nsx_v3.lb_utils.remove_rule_from_policy(rule)¶
-
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. The tenant router needs to connect to gateway. 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