[Yahoo-eng-team] [Bug 1630134] Re: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter.
Reviewed: https://review.openstack.org/428244 Committed: https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=89ae75c486c9d447c83006a91334276a79013780 Submitter: Jenkins Branch:master commit 89ae75c486c9d447c83006a91334276a79013780 Author: Anindita DasDate: Thu Feb 2 16:27:04 2017 + api-ref: Add 'qos_policy_id' parameter to PUT Adds the 'qos_policy_id' request parameter to the Update Network api. (see defect) Change-Id: Ifc4e3cce093bc6109d8f5529e9c72bd133b44831 Closes-Bug: #1630134 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1630134 Title: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter. Status in neutron: Fix Released Status in openstack-api-site: Invalid Bug description: The API reference http://developer.openstack.org/api- ref/networking/v2/index.html doesn't reflect the fact a Qos Policy linked to an existing network can be updated: $ curl -s -H "X-Auth-Token: $OS_TOKEN" http://${OS_HOST}:9696/v2.0/qos/policies | python -mjson.tool{ "policies": [ { "description": "This policy limits the ports to 10Mbit max.", "id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "name": "10Mbit", "rules": [], "shared": false, "tenant_id": "5a23535b5dda4770bccc856d0167e53f" } ] } $ curl -s -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json" http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8| python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": null, "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } $ curl -s \ > -X PUT \ > -H "X-Auth-Token: $OS_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{"network": { "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b" } }' \ > http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8 | python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1630134/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1630134] Re: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter.
** Changed in: openstack-api-site Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1630134 Title: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter. Status in neutron: Confirmed Status in openstack-api-site: Invalid Bug description: The API reference http://developer.openstack.org/api- ref/networking/v2/index.html doesn't reflect the fact a Qos Policy linked to an existing network can be updated: $ curl -s -H "X-Auth-Token: $OS_TOKEN" http://${OS_HOST}:9696/v2.0/qos/policies | python -mjson.tool{ "policies": [ { "description": "This policy limits the ports to 10Mbit max.", "id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "name": "10Mbit", "rules": [], "shared": false, "tenant_id": "5a23535b5dda4770bccc856d0167e53f" } ] } $ curl -s -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json" http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8| python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": null, "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } $ curl -s \ > -X PUT \ > -H "X-Auth-Token: $OS_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{"network": { "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b" } }' \ > http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8 | python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1630134/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1630134] Re: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter.
** Tags added: doc ** Also affects: openstack-api-site Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1630134 Title: Networking API v2.0 (CURRENT): Update Network Request missing the 'qos-policy-id' parameter. Status in neutron: New Status in openstack-api-site: New Bug description: The API reference http://developer.openstack.org/api- ref/networking/v2/index.html doesn't reflect the fact a Qos Policy linked to an existing network can be updated: $ curl -s -H "X-Auth-Token: $OS_TOKEN" http://${OS_HOST}:9696/v2.0/qos/policies | python -mjson.tool{ "policies": [ { "description": "This policy limits the ports to 10Mbit max.", "id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "name": "10Mbit", "rules": [], "shared": false, "tenant_id": "5a23535b5dda4770bccc856d0167e53f" } ] } $ curl -s -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json" http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8| python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": null, "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } $ curl -s \ > -X PUT \ > -H "X-Auth-Token: $OS_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{"network": { "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b" } }' \ > http://${OS_HOST}:9696/v2.0/networks/b18d3079-fcaa-41b7-8aec-0d009789fff8 | python -mjson.tool { "network": { "admin_state_up": false, "id": "b18d3079-fcaa-41b7-8aec-0d009789fff8", "mtu": 0, "name": "cristalnet", "port_security_enabled": true, "provider:network_type": "vxlan", "provider:physical_network": null, "provider:segmentation_id": 39, "qos_policy_id": "c4e80891-5d77-480f-8970-a7223fd72f4b", "router:external": false, "shared": true, "status": "ACTIVE", "subnets": [], "tenant_id": "5a23535b5dda4770bccc856d0167e53f", "vlan_transparent": null } } To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1630134/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp