The vmware_nsx.services.lbaas.nsx_v.lbaas_common Module

vmware_nsx.services.lbaas.nsx_v.lbaas_common.add_address_to_address_groups(ip_addr, address_groups)

Add ip_addr as a secondary IP address to an address group which belongs to the same subnet.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.add_vip_as_secondary_ip(vcns, edge_id, vip)

Edge appliance requires that a VIP will be configured as a primary or a secondary IP address on an interface. To do so, we locate an interface which is connected to the same subnet that vip belongs to. This can be a regular interface, on a sub-interface on a trunk.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.add_vip_fw_rule(vcns, edge_id, vip_id, ip_address)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.create_lb_interface(context, plugin, lb_id, subnet_id, tenant_id, vip_addr=None, subnet=None)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.del_address_from_address_groups(ip_addr, address_groups)

Delete ip_addr from secondary address list in address groups.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.del_vip_as_secondary_ip(vcns, edge_id, vip)

While removing vip, delete the secondary interface from Edge config.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.del_vip_fw_rule(vcns, edge_id, vip_fw_rule_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.delete_lb_interface(context, plugin, lb_id, subnet_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.enable_edge_acceleration(vcns, edge_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.extract_resource_id(location_uri)

Edge assigns an ID for each resource that is being created: it is postfixes the uri specified in the Location header. This ID should be used while updating/deleting this resource.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.find_address_in_same_subnet(ip_addr, address_groups)

Lookup an address group with a matching subnet to ip_addr. If found, return address_group.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_edge_ip_addresses(vcns, edge_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lb_edge_name(context, lb_id)

Look for the resource name of the edge hosting the LB.

For older loadbalancers this may be a router edge

vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lb_interface(context, plugin, lb_id, subnet_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lb_resource_id(lb_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lbaas_edge_id(context, plugin, lb_id, vip_addr, subnet_id, tenant_id, appliance_size)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lbaas_edge_id_for_subnet(context, plugin, subnet_id, tenant_id)

Grab the id of an Edge appliance that is connected to subnet_id.

vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_lbaas_fw_section_id(vcns)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.get_member_id(member_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.is_lb_on_router_edge(context, core_plugin, edge_id)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.set_lb_firewall_default_rule(vcns, edge_id, action)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.update_pool_fw_rule(vcns, pool_id, edge_id, section_id, member_ips)
vmware_nsx.services.lbaas.nsx_v.lbaas_common.vip_as_secondary_ip(vcns, edge_id, vip, handler)

This Page