NSXv: Remove router dependency for LBaaS

Use of exclusive router edge appliance to host LBaaS instances is
inconsistent with upstream behavior.
This patch allocates a dedicated edge appliance per each LB instance.

Change-Id: I699df5289e339c6b335d6e60928faca39a0dcd59
This commit is contained in:
Kobi Samoray
2017-02-02 16:30:50 +02:00
parent fdda07fb32
commit e2016b2027
5 changed files with 136 additions and 48 deletions

View File

@@ -23,6 +23,7 @@ DHCP_EDGE_PREFIX = 'dhcp-'
ROUTER_EDGE_PREFIX = 'router-'
PLR_EDGE_PREFIX = 'plr-'
BACKUP_ROUTER_PREFIX = 'backup-'
LB_EDGE_PREFIX = 'lb-'
EDGE_NAME_LEN = 20
# Interface
@@ -59,7 +60,8 @@ SUFFIX_LENGTH = 8
#Edge size
SERVICE_SIZE_MAPPING = {
'router': nsxv_constants.COMPACT,
'dhcp': nsxv_constants.COMPACT
'dhcp': nsxv_constants.COMPACT,
'lb': nsxv_constants.COMPACT
}
ALLOWED_EDGE_SIZES = (nsxv_constants.COMPACT,
nsxv_constants.LARGE,