Skip to content

Commit 28922b3

Browse files
committed
Rebase network proxy to proxy2
Change-Id: Id0b11cd98c332582cec3017a1237ad54cbcc41ac
1 parent 076ec4a commit 28922b3

File tree

11 files changed

+585
-390
lines changed

11 files changed

+585
-390
lines changed

openstack/network/v2/_proxy.py

Lines changed: 460 additions & 320 deletions
Large diffs are not rendered by default.

openstack/network/v2/flavor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ class Flavor(resource.Resource):
4040
#: Service type to which the flavor applies
4141
service_type = resource.Body('service_type')
4242
#: IDs of service profiles associated with this flavor
43-
service_profile_ids = resource.Body('service_profiles')
43+
service_profile_ids = resource.Body('service_profiles', type=list)

openstack/network/v2/floating_ip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class FloatingIP(resource.Resource):
3232
_query_mapping = resource.QueryParameters(
3333
'description', 'fixed_ip_address', 'floating_ip_address',
3434
'floating_network_id', 'port_id', 'router_id', 'status',
35-
project_id='tenant_id',
36-
revision_number='revision')
35+
project_id='tenant_id')
3736

3837
# Properties
3938
#: Timestamp at which the floating IP was created.

openstack/network/v2/network.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ class Network(resource.Resource):
2929

3030
# NOTE: We don't support query on list or datetime fields yet
3131
_query_mapping = resource.QueryParameters(
32-
'description', 'name', 'status',
32+
'description', 'name', 'project_id', 'status',
3333
ipv4_address_scope_id='ipv4_address_scope',
3434
ipv6_address_scope_id='ipv6_address_scope',
3535
is_admin_state_up='admin_state_up',
3636
is_port_security_enabled='port_security_enabled',
3737
is_shared='shared',
38-
revision_number='revision',
38+
provider_network_type='provider:network_type',
39+
provider_physical_network='provider:physical_network',
40+
provider_segmentation_id='provider:segmentation_id',
3941
)
4042

4143
# Properties

openstack/network/v2/pool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Pool(resource.Resource):
2828
allow_list = True
2929

3030
_query_mapping = resource.QueryParameters(
31-
'description', 'health_monitor_id', 'lb_algorithm', 'name',
32-
'protocol', 'provider', 'subnet_id', 'vip_id',
31+
'description', 'lb_algorithm', 'name',
32+
'protocol', 'provider', 'subnet_id', 'virtual_ip_id',
3333
is_admin_state_up='admin_state_up',
3434
project_id='tenant_id',
3535
)
@@ -69,7 +69,7 @@ class Pool(resource.Resource):
6969
status = resource.Body('status')
7070
#: The status of the network.
7171
status_description = resource.Body('status_description')
72-
#: The subnet on whic the members of the pool will be located.
72+
#: The subnet on which the members of the pool will be located.
7373
subnet_id = resource.Body('subnet_id')
7474
#: Session persistence algorithm that should be used (if any).
7575
#: *Type: dict with keys ``type`` and ``cookie_name``*

openstack/network/v2/qos_policy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class QoSPolicy(resource.Resource):
2727
allow_delete = True
2828
allow_list = True
2929

30+
_query_mapping = resource.QueryParameters(
31+
'name', 'description',
32+
project_id='tenant_id',
33+
is_shared='shared'
34+
)
35+
3036
# Properties
3137
#: QoS policy name.
3238
name = resource.Body('name')

openstack/network/v2/qos_rule_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class QoSRuleType(resource.Resource):
2727
allow_delete = False
2828
allow_list = True
2929

30+
_query_mapping = resource.QueryParameters('type')
31+
3032
# Properties
3133
#: QoS rule type name.
3234
type = resource.Body('type')

openstack/network/v2/rbac_policy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ class RBACPolicy(resource.Resource):
2727
allow_delete = True
2828
allow_list = True
2929

30-
# NOTE: This resource doesn't support query parameters
30+
_query_mapping = resource.QueryParameters(
31+
'action', 'object_id', 'object_type', 'project_id',
32+
'target_project_id',
33+
)
3134

3235
# Properties
3336
#: ID of the object that this RBAC policy affects.

openstack/network/v2/security_group_rule.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ class SecurityGroupRule(resource.Resource):
2828
allow_list = True
2929

3030
_query_mapping = resource.QueryParameters(
31-
'description', 'direction', 'ethertype', 'protocol',
31+
'description', 'direction', 'protocol',
3232
'remote_group_id', 'security_group_id',
33+
ether_type='ethertype',
3334
project_id='tenant_id',
35+
3436
)
3537

3638
# Properties

openstack/network/v2/service_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ServiceProfile(resource.Resource):
3535
# Properties
3636
#: Description of the service flavor profile.
3737
description = resource.Body('description')
38-
#: Provider Driver for the service flavor profile
38+
#: Provider driver for the service flavor profile
3939
driver = resource.Body('driver')
4040
#: Sets enabled flag
4141
is_enabled = resource.Body('enabled', type=bool)

0 commit comments

Comments
 (0)