implement neutron commands

Registered by Doug Hellmann

Implement the core features of the neutron client. See whiteboard for details.

Blueprint information

Status:
Complete
Approver:
Steve Martinelli
Priority:
Medium
Drafter:
Terry Howe
Direction:
Approved
Assignee:
Richard Theis
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Dean Troyer
Completed by
Richard Theis

Related branches

Sprints

Whiteboard

---------------------------------------------------------
This whiteboard becomes long.
Let's track the status by https://etherpad.openstack.org/p/osc-neutron-support
--------------------------------------------------------

(rtheis - Feb 11, 2016): I propose that we scope this blueprint to the SDK integration and base neutron support before it gets too large (one could argue that it already has). Future blueprints should be scoped to a specific network resource. This blueprint will cover the following commands:
1) os ip floating CRUD
2) os router CRUD
3) os security group CRUD
4) os security group rule CRUD
5) os port CRUD
6) os subnet CRUD
7) os quota R
8) os availability zone R
9) os subnet pool CRUD
10) os address scope CRUD (Added by rtheis - April 21, 2016)

(rtheis - Feb 26, 2016): I've opened the following blueprints for the next stage of the network support.
https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-client-quota
https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-client-rbac
https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-client-advanced-router
https://blueprints.launchpad.net/python-openstackclient/+spec/extension-show

(rtheis - April 21, 2016): Additional blueprints opened for network support:
https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-ip-capacity
https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-client-resource-description
https://blueprints.launchpad.net/python-openstackclient/+spec/rework-ip-commands
https://blueprints.launchpad.net/python-openstackclient/+spec/network-property-unset

(ralonsoh - August 2 2016) QoS commands support:
QoS commands: https://blueprints.launchpad.net/python-openstackclient/+spec/neutron-client-qos

(rtheis - August 2, 2016):
The core networking features have been completed. Other features and fixes will be track under separate blueprints and/or bugs.

Updated the wiki:

https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network

Submitted a hack of a proposal for implementation:

https://review.openstack.org/#/c/55680/

Gerrit topic: https://review.openstack.org/#q,topic:bp/quantum-client,n,z

Addressed by: https://review.openstack.org/80035
    Add neutron client to requirements.txt

Gerrit topic: https://review.openstack.org/#q,topic:bp/neutron-client,n,z

Addressed by: https://review.openstack.org/138745
    SDK integration into OSC for network CRUD

Gerrit topic: https://review.openstack.org/#q,topic:bp/neutron,n,z

Addressed by: https://review.openstack.org/84782
    Subnet CRUD

Gerrit topic: https://review.openstack.org/#q,topic:bp/osc-network-unit-test-refactor,n,z

Addressed by: https://review.openstack.org/251359
    Refactor network test: Introduce TestNetworkv2 and TestNetwork to improve unit test of network

Addressed by: https://review.openstack.org/251363
    Refactor TestCreateNetwork: Setup identity client in setUp() in TestCreateNetworkIdentityV3

Addressed by: https://review.openstack.org/251362
    Refactor TestCreateNetwork: Setup cmd in setUp() in TestCreateNetworkIdentityV2

Addressed by: https://review.openstack.org/251361
    Refactor TestCreateNetwork: Setup cmd in setUp() in TestCreateNetworkIdentityV3

Addressed by: https://review.openstack.org/251360
    Refactor TestCreateNetwork: Split TestCreateNetwork into two classes for identity v2 and v3

Addressed by: https://review.openstack.org/251365
    Refactor TestDeleteNetwork: Use TestNetwork in TestDeleteNetwork

Addressed by: https://review.openstack.org/251364
    Refactor TestCreateNetwork: Setup identity client in setUp() in TestCreateNetworkIdentityV2

Addressed by: https://review.openstack.org/251618
    Refactor TestListNetwork: Use TestNetwork in TestListNetwork

Addressed by: https://review.openstack.org/251619
    Refactor TestSetNetwork: Use TestNetwork in TestSetNetwork

Addressed by: https://review.openstack.org/251620
    Refactor TestShowNetwork: Use TestNetwork in TestShowNetwork

Addressed by: https://review.openstack.org/251621
    Refactor network test: Remove unusful test code.

Gerrit topic: https://review.openstack.org/#q,topic:bug/1519511,n,z

Addressed by: https://review.openstack.org/252613
    Refactor neutron enablement checking

Addressed by: https://review.openstack.org/253342
    Introduce class FakeNetwork to fake one or more networks.

Addressed by: https://review.openstack.org/253343
    Migrate "network list" command to new version using SDK.

Addressed by: https://review.openstack.org/253344
    Migrate "network create" command to use SDK.

Addressed by: https://review.openstack.org/253345
    Migrate "network delete" command to use SDK.

Addressed by: https://review.openstack.org/253346
    Migrate "network set" command to use SDK.

Addressed by: https://review.openstack.org/253347
    Migrate "network show" command to use SDK.

Addressed by: https://review.openstack.org/253348
    Migrate network client to SDK.

Addressed by: https://review.openstack.org/253349
    Remove unuseful test data in test_netwrok.py

Addressed by: https://review.openstack.org/255545
    Remove python-neutronclient requirement

Addressed by: https://review.openstack.org/256070
    Doc: Add optional command specs process

Addressed by: https://review.openstack.org/256308
    Router: Add class FakeRouter to test "router xxx" command

Addressed by: https://review.openstack.org/256309
    Router: Add "router list" command using SDK

Addressed by: https://review.openstack.org/257038
    Router: Add "router create" command using SDK

Addressed by: https://review.openstack.org/257039
    Router: Add "router delete" command using SDK.

Addressed by: https://review.openstack.org/257354
    Router: Add "router set" command using SDK

Addressed by: https://review.openstack.org/257355
    Router: Add "router show" command using SDK

Addressed by: https://review.openstack.org/257543
    Refactor security group delete to use SDK

Gerrit topic: https://review.openstack.org/#q,topic:bug/1519502,n,z

Addressed by: https://review.openstack.org/258519
    Implementation for Network Floating IP CRUD

Gerrit topic: https://review.openstack.org/#q,topic:bug/1528249,n,z

Addressed by: https://review.openstack.org/260232
    Fix showing network quotas for a project

Addressed by: https://review.openstack.org/260568
    Implementation for Network Port CRUD

Addressed by: https://review.openstack.org/261053
    Router: Add --route and --no-routes options to "router set" command

Addressed by: https://review.openstack.org/261089
    Improve output for "os security group show"

Gerrit topic: https://review.openstack.org/#q,topic:bug/1519512,n,z

Addressed by: https://review.openstack.org/261103
    Functional tests for security group rule

Addressed by: https://review.openstack.org/261825
    Refactor: Initialize parser in setUp() in TestKeyValueAction

Addressed by: https://review.openstack.org/261826
    Refactor: Initialize parser in setUp() in TestNonNegativeAction

Addressed by: https://review.openstack.org/261827
    Add KeyValueListAction to custom parser action

Addressed by: https://review.openstack.org/263843
    Further improve output for "os security group show"

Addressed by: https://review.openstack.org/270721
    Add availability zone support for router commands

Gerrit topic: https://review.openstack.org/#q,topic:bug/1519503,n,z

Addressed by: https://review.openstack.org/272166
    Add router functional tests

Addressed by: https://review.openstack.org/272616
    Update openstacksdk version required

Addressed by: https://review.openstack.org/272840
    Use correct terminology for subnets

Gerrit topic: https://review.openstack.org/#q,topic:bug/1519909,n,z

Addressed by: https://review.openstack.org/273242
    Add "os port show" command

Addressed by: https://review.openstack.org/273321
    Add availability zone support for network commands

Addressed by: https://review.openstack.org/273670
    Add 'port create' command

Addressed by: https://review.openstack.org/276042
    Router: Add --route and --clear-routes options to "router set" command

Addressed by: https://review.openstack.org/276371
    Add port list command

Addressed by: https://review.openstack.org/276495
    Add "os subnet show" command using SDK

Addressed by: https://review.openstack.org/276775
    Refactor security group rule delete to use SDK

Addressed by: https://review.openstack.org/276800
    Refactor security group functional tests

Addressed by: https://review.openstack.org/276888
    Add NetworkAndCompute Lister and ShowOne classes

Addressed by: https://review.openstack.org/277720
    Floating IP: Implementation of "ip floating list" command

Gerrit topic: https://review.openstack.org/#q,topic:bug/1523258,n,z

Addressed by: https://review.openstack.org/277991
    Subnet Show

Addressed by: https://review.openstack.org/278209
    Subnet: Add "subnet delete" command using SDK

Addressed by: https://review.openstack.org/278481
    Refactor security group list to use SDK

Gerrit topic: https://review.openstack.org/#q,topic:bug/1543672,n,z

Addressed by: https://review.openstack.org/279273
    Add "os subnet create" command using SDK

Gerrit topic: https://review.openstack.org/#q,topic:bug/1544587,n,z

Addressed by: https://review.openstack.org/279550
    Subnet Pool: Add "subnet pool delete" command

Addressed by: https://review.openstack.org/279624
    Add port functional tests

Addressed by: https://review.openstack.org/279642
    Add subnet functional tests

Addressed by: https://review.openstack.org/279722
    Add quota functional tests

Gerrit topic: https://review.openstack.org/#q,topic:bug/1544586,n,z

Addressed by: https://review.openstack.org/279797
    Add subnet pool functional tests

Gerrit topic: https://review.openstack.org/#q,topic:bug/1544589,n,z

Addressed by: https://review.openstack.org/279918
    Subnet Pool: Add "subnet pool list" command

Gerrit topic: https://review.openstack.org/#q,topic:bug/1544590,n,z

Addressed by: https://review.openstack.org/279935
    Subnet Pool: Add "subnet pool show" command

Addressed by: https://review.openstack.org/280498
    Add release note for "ip floating delete/list" commands for neutron network

Addressed by: https://review.openstack.org/280534
    Define FakeFloatingIP class in tests/compute for nova network commands

Addressed by: https://review.openstack.org/280535
    Floating IP: Fix "ip floating list" in neutron network

Addressed by: https://review.openstack.org/281129
    Subnet: Add "subnet set" command using SDK

Addressed by: https://review.openstack.org/281691
    [WIP] Add "router port add" to osc

Addressed by: https://review.openstack.org/281694
    [WIP] Add "router port delete" to osc

Addressed by: https://review.openstack.org/282525
    Add "security group rule show" command

Addressed by: https://review.openstack.org/283233
    Add 'port set' command

Addressed by: https://review.openstack.org/284020
    Floating IP: Neutron support for "ip floating show" command

Addressed by: https://review.openstack.org/286275
    Refactor security group show to use SDK

Addressed by: https://review.openstack.org/286861
    Refactor security group create to use SDK

Addressed by: https://review.openstack.org/287763
    Refactor security group set to use SDK

Addressed by: https://review.openstack.org/288441
    [WIP] Floating IP: Neutron support for "ip floating create" command

Addressed by: https://review.openstack.org/288911
    Add release note for security group set refactor

Gerrit topic: https://review.openstack.org/#q,topic:bug/1544591,n,z

Addressed by: https://review.openstack.org/289202
    [Subnet pool] Add 'subnet pool set' command support

Addressed by: https://review.openstack.org/289715
    [Subnet pool] Add 'subnet pool create' command support

Addressed by: https://review.openstack.org/290849
    Add extensions support for os port commands

Addressed by: https://review.openstack.org/291602
    Add incompatibility info for "ip floating list" command

Addressed by: https://review.openstack.org/291736
    Add project options to security group create

Addressed by: https://review.openstack.org/291866
    Add option to allow filtering by router on port list

Addressed by: https://review.openstack.org/294118
    Refactor security group create rule to use SDK

Addressed by: https://review.openstack.org/296516
    Refactor security group rule list to use SDK

Addressed by: https://review.openstack.org/300593
    Add network options to security group rule create

Addressed by: https://review.openstack.org/300303
    Add name option to 'port set'

Addressed by: https://review.openstack.org/301744
    Add project options to security group rule create

Addressed by: https://review.openstack.org/304297
    Add options to security group rule list

Addressed by: https://review.openstack.org/307908
    Additional network protocol support

Addressed by: https://review.openstack.org/328470
    Add geneve provider network type

Addressed by: https://review.openstack.org/329951
    Add "--device-owner" option to "port list"

Addressed by: https://review.openstack.org/331119
    Support JSON data for port binding profile

Addressed by: https://review.openstack.org/335550
    Add port security option to network commands

Addressed by: https://review.openstack.org/381424
    [Floating IP] Neutron support for "ip floating create" command

Addressed by: https://review.openstack.org/381506
    Add incompatibility info for "ip floating list" command

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.