pyflake8 was updated and not properly constrainted by hacking, update
to hacking 3.1.0 and fix the problems found.
py27 failed since global upper-constraints includes py3 only packages.
Use lower-constraints for this test.
The functional jobs run on master with py27, remove the py27 master job,
change the jobs so that py3 is used everywhere.
Change-Id: I695d60e53857e03f206dcd7cf10c06c76c8d6cc0
The networking API v2 specification, which is implemented by
openstack neutron, features an optional MTU parameter - when
creating a network, this allows operators to specify the value
for the maximum transmission unit value.
Change-Id: I288f02551555fff3e8b350fc6d7c6ae8f60c405c
Added a new property, 'port_security_enabled' which is a boolean to
enable or disable port_secuirty during network creation. The default
behavior will enable port security, security group and anti spoofing
will act as before. When the attribute is set to False, security
group and anti spoofing are disabled on the ports created on this
network.
Change-Id: If984a82ca5f6fb69ee644f4fa84333df09d7f8bc
Adds an optional parameter to the create_network and
create_router-methods, for use with availability zone-scheduling of
network agents.
Change-Id: Ifb93a10415dc676f5cc56b5315f2dff24fc395b8
For finding specified resource, we list all the resources in
get_xxx(name_or_id) method, then find the result in list result loop,
that might have poor performance and slow response when there are many
resources in a project. OpenStack API support to get resource by id
directly, and part of them had been implemented in Shade, like:
get_server_by_id(), get_user_by_id(), get_volume_snapshot_by_id.
The patch aims to support more:
- flavor
- image
- volume
- network
- subnet
- port
- floatingip
- security group
- ...
Change-Id: Icb0af21c2d7e8bda07c072cc6098269304b7ab88
Closes-Bug: #1709577
This file is place where all tests related to networks
lives so tests for list_networks should be also there.
Change-Id: I3aa7254f66a100d269deefef725dff036488efd2
There is no need to construct a cloud individually in each unit test.
Further more, we can now just use the enable-inner-exception interface
introduced a few patches ago.
Change-Id: Ia45a47ec243c917ab05b5a2f95c449b9e8d1da68
The neutron net-create verb allows passing a tenant_id param,
allowing a cloud admin to create networks on any projects is
granted to.
This change allows passing this param, which is an admin-only
option.
Change-Id: I76285ad1f7106f9a5900f118cdc7a5012786869d
There are some setups where sending 'router:external' can
produce a Forbidden error. For an example, see:
https://github.com/ansible/ansible-modules-core/issues/2435
Let's not send it unless it is explicitly set to True.
Change-Id: I59c43bf3eab09ed620cd1e8e5e445037767eb8bb