554 Commits

Author SHA1 Message Date
Amey Bhide
b538ece323 [NSXv]: Add conf param for exclusive router edge size
Allows user to specify default exclusive_router_appliance_size in
nsx.ini file. If --router-size isn't specified in neutron router-create CLI
command; exclusive_router_appliance_size will be picked up

DocImpact

Change-Id: I010bfdb8c5807bb933085f049326082c8b5782dc
2015-09-25 11:44:44 -07:00
Shih-Hao Li
4483fe5006 Reorganize vmware_nsx/tests structure
This patch is based on https://review.openstack.org/161194
It renames vmware_nsx/tests/unit/vmware/ to vmware_nsx/tests/unit/
and creates subdirectories
vmware_nsx/tests/unit/dvs/
vmware_nsx/tests/unit/nsx_mh/
vmware_nsx/tests/unit/nsx_v/
vmware_nsx/tests/unit/nsx_v3/
vmware_nsx/tests/unit/nsxlib/mh/
vmware_nsx/tests/unit/nsxlib/v3/

This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I16aa2455bce55f6455bb5e504ee9684c675b4257
2015-09-24 10:41:10 -07:00
Jenkins
fda6b6a585 Merge "Add router-size when creating an exclusive router" 2015-09-24 17:40:11 +00:00
Gary Kotton
d923f1e6e6 NSX|V: enable update for subnet from horizon
Change-Id: I88340398a1739b3c13a65e424e6c164acb340835
Closes-bug: #1499444
2015-09-24 08:59:55 -07:00
Jenkins
bc98804da2 Merge "NSXv: enforce backend limitations with IPv6" 2015-09-24 12:40:53 +00:00
Jenkins
e0837e464b Merge "NSXv: set the 'aggregatePublishing' on the manager" 2015-09-24 12:24:17 +00:00
Gary Kotton
689e4aa678 NSX|V: set the edge_ha default state to be False
This is required to ensure backward comapatibility.

Change-Id: I1c912fcca8bd81aa86f9729885b7780ac564fd44
Closes-bug: #1499181
2015-09-23 23:31:40 -07:00
Amey Bhide
9329762d3e Add router-size when creating an exclusive router
Enables a user to specify router-size while creating an exclusive router for
creating a load-balancer service

Change-Id: If03b51ce0bc61a8e2aa46de4f1b5869306e1bd7e
2015-09-23 13:08:58 -07:00
Jenkins
e56011b06d Merge "NSXv3: Completing security-group implementation" 2015-09-23 17:46:58 +00:00
Jenkins
b92eb3ed68 Merge "nsx v3 lport refactor" 2015-09-22 23:16:25 +00:00
Jenkins
add9aebf9f Merge "Move nsx_l2gw_driver to DEFAULT section in nsx.ini" 2015-09-22 21:40:01 +00:00
Jenkins
3c1499b839 Merge "nsx v3 port security plumbing" 2015-09-22 08:28:08 +00:00
Jenkins
d5593953a7 Merge "NSXv3: Add more unit tests for layer 2 gateway support" 2015-09-21 19:44:25 +00:00
Boden R
22618a005b nsx v3 lport refactor
this patch refactors the nsx v3 logical switch port functions
into the rest client/resource model and updates all refs
to these functions to use an nsx v3 client. the patch also
adds support for passing switch profile ids to the lport create.
this functionality will be leveraged in subsequent port
security change sets.

Change-Id: I1cf86a7f3127f637735560f1ad60eb36edac7500
2015-09-21 13:34:15 -06:00
Boden R
a7c909536e nsx v3 port security plumbing
this patch includes some plumbing for the nsx v3
port security port which will come in subsequent
patches. in particular this patch refactors the nsx v3
nsxlib rest client and adds a rest resource for nsx v3
switching profiles which will be leveraged in port
security implementation. unit tests included.

Change-Id: I210c8cc495bf30c798445c20f9604689fea37521
2015-09-21 12:46:08 -06:00
Roey Chen
1ac571ccaf NSXv3: Completing security-group implementation
This patch adds default dhcp allow rule to all security-group associated ports,
plus few minor changes.

Change-Id: I32be9006aed619471136c5290bcd63688dfb4d6f
2015-09-21 02:43:00 -07:00
Tong Liu
dba21e7045 dfw_api.py: fix nsxclient typo
In dfw_api.py file, we need to use nsxclient in stead of nsclient
as nsxclient is more self-explanatory. Also fix the unit test to
use nsxclient.

Change-Id: I4c0f45df0f7f5c67783798ce9550964959350429
2015-09-20 15:37:49 -07:00
Jenkins
c0bd90b691 Merge "NSXv driver for Layer 2 gateway" 2015-09-19 17:16:34 +00:00
Jenkins
3c66b82675 Merge "Delete security group bindings on port delete" 2015-09-18 18:02:59 +00:00
Jenkins
ddc117b737 Merge "Divide vmware_nsx/nsxlib/ into mh and v3 subdirectories" 2015-09-18 10:31:18 +00:00
Gary Kotton
7ef438b8fb NSXv: enforce backend limitations with IPv6
Ensure that IPv6 is not set with DHCP.

Change-Id: Iaed083885caef3cb72acc9b8803c195e4de3b85a
2015-09-17 23:49:24 -07:00
Gary Kotton
869634572d NSXv: set the 'aggregatePublishing' on the manager
Ensure that the manager edge configuration has the value set as 'true'
for aggregatePublishing.

This is supported from version 6.1.5

Change-Id: Ib3cb50ca650d501f38b7bc50ca69e31fb2f0f9a7
Closes-bug: #1491379
2015-09-17 23:20:36 -07:00
Shih-Hao Li
4965074703 Divide vmware_nsx/nsxlib/ into mh and v3 subdirectories
This patch adds a new subdirectory "mh" under vmware_nsx/nsxlib/
and moves all current vmware_nsx/nsxlib/*.py to "mh". This will
make vmware_nsx/nsxlib/ consisted of only mh and v3 subdirectories.

This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I31e4558b648c9982208739b19623002e1fa181ff
2015-09-17 17:01:18 -07:00
Amey Bhide
518eef210e [NSXv]: Fix router attribute validation check
The following router-create call failed with correct error:

$ neutron router-create --distributed True --router-type shared
Invalid input for operation: Can not support router_type extension
for distributed router.

However, a router was getting created on neutron with router-type set as False.
Had to move the router-type check before creating a router on neutron

Change-Id: I5c34b4e903344f533fa22830fd08220e431cd999
2015-09-17 13:29:29 -07:00
Zhenmei
0fc47eabf5 NSXv driver for Layer 2 gateway
This patch adds the backend driver to support Layer 2 gateway
API calls for NSXv.

Partial-bug: #1481087

Change-Id: Iea8b5390300dfd653b275c4389bc0d12bc4cc59f
2015-09-18 01:06:29 +08:00
Jenkins
af90450fc4 Merge "Divide vmware_nsx/plugins into plugin-specific subdirectories" 2015-09-17 12:36:48 +00:00
Shih-Hao Li
09d19bb138 Divide vmware_nsx/plugins into plugin-specific subdirectories
This patch will create:
vmware_nsx/plugins/dvs for DVS specific files
vmware_nsx/plugins/nsx_mh for MH specific files
vmware_nsx/plugins/nsx_v for nsx_v specific files
vmware_nsx/plugins/nsx_v3 for nsx_v3 specific files

also move vmware_nsx/vsphere/ to vmware_nsx/plugins/nsx_v/vsphere/.

This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I00ee12da2eea0add988bae3d4f3e12940ea829bb
2015-09-16 16:14:47 -07:00
Gary Kotton
c7ed3b42f3 L2 gateway migration skip
Skip l2 gw migration if the table does not exist

Change-Id: Ib88e10e7c377d8dc1dece75fae1307174ff827cb
2015-09-16 04:24:06 -07:00
Jenkins
7a3340e13a Merge "Metadata LB configuration should be synchronous" 2015-09-16 09:42:01 +00:00
Jenkins
45442211fc Merge "NSXv: ensure that locking is done with flag 'external=True'" 2015-09-16 09:41:59 +00:00
Jenkins
b5d0599277 Merge "Divide vmware_nsx/services into plugin-specific subdirectories" 2015-09-16 09:05:07 +00:00
Kobi Samoray
cfe96c857b Metadata LB configuration should be synchronous
When metadata configuration is deployed to a router or DHCP edge, it
overwrites the existing LB configuration. This operation cannot be concurrent
with any other transaction on the edge and therefore cannot be asynchronous.

Change-Id: I77465a572a8f07a3fd248386899dfd3de27791f1
2015-09-16 10:18:22 +03:00
linb
4e839fbbe6 NSXv3: FIP support
Change-Id: Idab0e47d104d22131d7835bc7efa88e6e0983470
2015-09-16 09:37:34 +08:00
Shih-Hao Li
453994f57e Divide vmware_nsx/services into plugin-specific subdirectories
This patch will create:
vmware_nsx/services/common for common plugin files
vmware_nsx/services/nsx_v3 for nsx_v3 specific plugin files

This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I30753aef1c06e2a1b15d336e1d661f3b44ea669e
2015-09-15 15:53:58 -07:00
Gary Kotton
e95db00149 NSXv: ensure that locking is done with flag 'external=True'
All opertaions that are menat to be atomic should be done across
multiple API workers. This patch ensure that this is done globally.

In general the plugin can and should run with multiple API workers.

Change-Id: Ifdd4aa7b4254d4a35783d9749085405c17b038ce
2015-09-15 10:47:30 -07:00
Shih-Hao Li
d8eeda9baf Move vmware_nsx/neutron/plugins/vmware to vmware_nsx
This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I60d6ef62eb724df71dfda90137e00f107e220971
2015-09-14 18:51:57 -07:00
Shih-Hao Li
8918b10b67 Move vmware_nsx/neutron/tests to vmware_nsx/tests
This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I86262470a03c520bf8fe0f5129d940107701004f
2015-09-14 18:08:51 -07:00
Shih-Hao Li
128996f3f9 Move vmware_nsx/neutron/services to vmware_nsx/services
This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I9207851bd1db3c005efa6880ca717058fde7707d
2015-09-14 16:59:23 -07:00
Shih-Hao Li
7203f2c671 Move vmware_nsx/neutron/db to vmware_nsx/db
This is part of new vmware_nsx directory structure proposed in
https://goo.gl/GdWXyH.

Change-Id: I50468e8ecf81a636ac6a0f195c75b4bef25423b4
2015-09-14 16:45:18 -07:00
Jenkins
39977d84a9 Merge "Replace missing tag with "" instead of None" 2015-09-14 19:05:27 +00:00
Amey Bhide
562c816908 Replace missing tag with "" instead of None
NSXV3 backend field validation fails if None is passed for missing tags

Change-Id: I8d6b60040647ce8de4baf2f00752b1a7bb8497ba
2015-09-14 10:58:29 -07:00
Jenkins
9f709d7612 Merge "NSXv3: router intf support" 2015-09-14 16:10:59 +00:00
Jenkins
cd11717917 Merge "NSXv3: Router GW support" 2015-09-14 16:10:56 +00:00
Jenkins
12690ba02e Merge "NSXv3: Add backend driver for Layer 2 gateway" 2015-09-14 15:50:46 +00:00
linb
c485c8af31 NSXv3: router intf support
Change-Id: I9182bdb879be40370e905d417d7dba07f2ae1bf9
2015-09-14 15:50:44 +08:00
linb
8d26063364 NSXv3: Router GW support
Change-Id: Ifae6815754f048cc1e8708662fa28e74ca297eeb
2015-09-14 15:39:42 +08:00
Aaron Rosen
1d8d3f2d48 NSXv3: Add test coverage for build_v3_tags_payload
Change-Id: I3ff0cb9371943436155f381a26c8b8d6a81aa129
2015-09-10 19:57:54 -07:00
Aaron Rosen
80d78b4b17 NSXv3: Add neutron-id tag to backend
Having the neutron id in the nsx backend is helpful to aligning which
resources in the nsx backend match to their neutron counterpart since
their id's do not map one to one currently.

Change-Id: I2a438285e03333e2ca07921476f8fe5d56743b83
2015-09-10 19:57:10 -07:00
Jenkins
6c6a539de7 Merge "NsxV3: Router preparation for GW/intf/FIP support" 2015-09-10 23:49:30 +00:00
Jenkins
e5479a0ddc Merge "Move vmware-etc to top directory" 2015-09-10 18:28:14 +00:00