]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add 2-leg configuration to Radware LBaaS Driver
authorjasonrad <jason.walker@radware.com>
Fri, 24 Jan 2014 20:43:24 +0000 (15:43 -0500)
committerjasonrad <jason.walker@radware.com>
Tue, 22 Apr 2014 13:34:50 +0000 (09:34 -0400)
commitdc0e8ef62b4a91392af0307e0dc946e5ea28c54a
tree933134d73e913e1dce7094d63e17069dbe0ee1f3
parentd52f84d96a2fadcf90fdac7a3e265c45d2ec234a
Add 2-leg configuration to Radware LBaaS Driver

Radware's load balancer currently supports three network interfaces.
Prior to this code addition, the configuration of those three
interfaces was: one interface for management, one for high
availability backup, and one for load balancing servers where the
IP that the outside world sees (VIP) and the IP that the servers
respond to (PIP) are identical.

This change adds a new "2-legged" configuration: one interface for
management, one interface for a VIP network, and one interface for the
PIP and the high availability backup network.

During VIP creation, the LBaaS driver detects if the incoming
configuration is "2-legged" by comparing VIP and PIP networks.  If they
are different it allocates a new port on the PIP network in order to
obtain an IP address for the PIP and names that port after its
associated VIP ID.  vDirect is then directed to create a load balancer
with the PIP network also used as the HA network instead of using the
vDirect container's default HA network configuration.

During VIP deletion, the LBaas driver detects if a port for the PIP
had been previously allocated by searching for and deleting port names
that map to the VIP ID.

Change-Id: Ifb93159c654f16958842f646c119479c465230f9
Closes-Bug: 1268728
neutron/services/loadbalancer/drivers/radware/driver.py
neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py
neutron/tests/unit/services/loadbalancer/drivers/radware/test_plugin_driver.py