summaryrefslogtreecommitdiff
path: root/openstackclient/network
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Fix the problem of router deleteSongmingYan2016-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change "Remove" to "Delete" when using it in route-interface-delete. Change-Id: I9ebc38c787acbcb42d2f8efeee41f6cb943e4b9b Related-bug: #1560446
* | | | Merge "Support JSON data for port binding profile"Jenkins2016-06-231-6/+33
|\ \ \ \ | |/ / / |/| | |
| * | | Support JSON data for port binding profileRichard Theis2016-06-201-6/+33
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the "--binding-profile" option on the "port create" and "port set" commands to support both <key>=<value> and JSON input for the port custom binding profile data. The JSON input is sometimes needed to maintain the value type (e.g. integer) for more advanced data. The port custom binding profile data is unique across neutron so a custom argparse.Action class was created instead of writting a generic class in osc-lib. Change-Id: I82ac6d4f95afdc866f5282fc00d390f850f54d21 Implements: blueprint neutron-client
* | | Fix a missing i18n support in security_group_rule.pyHuanxuan Ao2016-06-211-2/+2
| |/ |/| | | | | Change-Id: Id1459366ccf894275a11c2af840568d4fd114e18
* | Merge "Error handling of "router delete" command"Jenkins2016-06-201-2/+17
|\ \
| * | Error handling of "router delete" commandHuanxuan Ao2016-06-201-2/+17
| |/ | | | | | | | | | | | | | | "Router delete" command supports multi deletion but no error handling. This patch add the error handling follow the rule in doc/source/command-error.rst Change-Id: I3376d957b4dc28d8282599dc909ecc5ed2b5f46a
* | Merge "Add "--network-segment" option to "subnet create""Jenkins2016-06-201-0/+10
|\ \
| * | Add "--network-segment" option to "subnet create"Richard Theis2016-06-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--network-segment" option to the "subnet create" command. This is a beta command option and subject to change. Use global option "--os-beta-command" to enable this option. This patch set also provides a devref update for beta command options. Change-Id: I4d0fbe079b2a873307364c41c22ce9ba88e632e6 Partially-Implements: blueprint routed-networks
* | | Standardize logger usageTang Chen2016-06-203-13/+22
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use file logger for all command specific logs. This patch also fixes some usage that doesn't follow rules in: http://docs.openstack.org/developer/oslo.i18n/guidelines.html After this patch, all self.log and self.app.log will be standardized to LOG(). NOTE: In shell.py, we got the log in class OpenStackShell, which is also known as self.app.log in other classes. This logger is used to record non-command-specific logs. So we leave it as-is. Change-Id: I114f73ee6c7e84593d71e724bc1ad00d343c1896 Implements: blueprint log-usage
* | Support bulk deletion for delete commands in networkv2Huanxuan Ao2016-06-162-8/+50
| | | | | | | | | | | | | | | | | | | | | | | | This patch support bulk deletion for delete commands below: 1.subnet delete 2.subnet pool delete Up to now, all the delete commands in networkv2 support bulk deletion. Change-Id: I63f6d1d02bad1fcc26e72b7028b53958a68ce2dc Partially-Implements: blueprint multi-argument-network Partial-Bug: #1592906
* | Merge "Support bulk deletion for commands that exist in both network and ↵Jenkins2016-06-153-21/+31
|\ \ | | | | | | | | | compute."
| * | Support bulk deletion for commands that exist in both network and compute.Huanxuan Ao2016-06-153-21/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some delete commands in networkv2 are exist in both network and compute, They can use NetworkAndComputeDeleteclass to supprot bulk deletion and error handling and the codes are similar, so I change them all in this patch. The changed commands including: 1.floating ip delete 2.security group delete 3.security group rule delete Also, I update unit tests and docs for these commands in this patch. Change-Id: I6c94c3d10ba579ddd9b14d17673c821e3481fd8a Partially-Implements: blueprint multi-argument-network
* | | Add default IP version and fix help messages for "ip availability list"Huanxuan Ao2016-06-151-2/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | There was not a default IP version in "ip availability list" command, if we used this command without "--ip-version" option, the output was different from the outputs with the option "--ip-version 4" and "--ip-version 6" and it is not right. This patch add default IP version (default is 4) in ``ip availability list`` command and make this command work properly without ``--ip-version`` option. And also fix the help message. Change-Id: Idc08ab6eaf05946eb2ab59bfb3d4497a383d987d Closes-Bug: #1592761
* | Merge "Add geneve provider network type"Jenkins2016-06-151-4/+4
|\ \
| * | Add geneve provider network typeRichard Theis2016-06-101-4/+4
| |/ | | | | | | | | | | | | | | Add the "geneve" choice to the "os network create" command's "--provider-network-type" option. Change-Id: I7573232ec3594ec4acbfae43a8456b8c3fcd1a83 Implements: blueprint neutron-client
* | Ensure endpoint type is used for network commandsStuart McLaren2016-06-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently OS_ENDPOINT_TYPE and --os-interface are being ignored for network commands. This means the public URL is always used. Make sure that these are picked up correctly so we hit the correct endpoint (internal/admin/etc.) for commands such as: $ openstack --os-interface internal network list Change-Id: Iac05204e3056e386d84d3644b5da1a2bb322bb0a Closes-bug: 1592368
* | osc-lib: commandDean Troyer2016-06-139-9/+9
| | | | | | | | | | | | | | Leave command.py and test_command.py as a sanity check during the deprecation period. Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
* | osc-lib: parseractionsDean Troyer2016-06-135-5/+5
| | | | | | | | | | | | | | Leave parseractions.py and test_parseractions.py as a sanity check during the deprecation period. Change-Id: I1a7469b6d872284e0276502a1a287bc0b87f8f83
* | osc-lib: utilsDean Troyer2016-06-1312-12/+19
| | | | | | | | | | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* | osc-lib: exceptionsDean Troyer2016-06-135-6/+12
|/ | | | | | | | Use osc-lib directly for exceptions. Leave openstackclient.common.exceptions for deprecation period. Change-Id: Iea3e862302372e1b31ccd27f69db59b4953ca828
* Merge "Make set/unset commands in network return normally when nothing ↵Jenkins2016-06-096-23/+0
|\ | | | | | | specified"
| * Make set/unset commands in network return normally when nothing specifiedTang Chen2016-06-086-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | set/unset commands should ends up normally instead of raising an exception when nothing is specified to modify. The main reason is: When nothing is specified, the command sets/unsets nothing, which is a normal behavior, and ends up normally. No API call fails. No error happens. This patch also adds a releasenote for both network, and volume commands that fix patch has been merged. Change-Id: I78c348066078decd350417a431f3b8bea8fcf9ef Partial-bug: #1588588
* | Fix networksunyajing2016-06-084-7/+7
|/ | | | | | | modify ``columns, data`` to ``(columns, data)`` in network, to keep code consistence. Change-Id: I0522c499d1651b4ea948bebccbdfd520934e8e6a
* Merge "Support error handling for "port delete" command"Jenkins2016-06-071-2/+15
|\
| * Support error handling for "port delete" commandHuanxuan Ao2016-06-071-2/+15
| | | | | | | | | | | | | | | | | | | | "Port delete" command supported deleting multi ports before but didn't support error handing, This patch add the error handling following the rules in doc/source/command-errors.rst. Change-Id: I4ea69f2279763626d6a27cad1ca0ee99822d016d Partially-Implements: blueprint multi-argument-network
* | Merge "Add network availability for osc"Jenkins2016-06-061-0/+109
|\ \
| * | Add network availability for oscManjeet Singh Bhatia2016-06-031-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements openstack client for network ip availability. Implements: blueprint neutron-ip-capacity Depends-On: I3b40d8edea87c068c4e8133e436511765064d5f8 Change-Id: Iffaa2e20ff495fbd205d3397e027e8141d04385e
* | | Fix --enable options on commandsRichard Theis2016-06-021-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --enable option on commands is ignored when the arguments are parsed. This is related to the --enable-beta-commands option. Renaming the option to --os-beta-command fixes the problem. There's no need to handle backwards compatibility for the option name change because there hasn't been an OSC release yet with beta commands. Change-Id: I0327ba8a2058858a83e9a42e231470ed733cc834 Closes-Bug: #1588384
* | | Trivial: Fix i18n support in network/common.pyTang Chen2016-05-312-7/+17
| |/ |/| | | | | | | | | Some missing i18n problems in network. Change-Id: I45a09a6ada1aad5a64256c0d0a0a2b6e250df670
* | Merge "Add network segment command object"Jenkins2016-05-301-0/+124
|\ \
| * | Add network segment command objectRichard Theis2016-05-271-0/+124
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Add network segment command object in support of routed networks. This patch set includes documentation, unit tests and functional tests (currently skipped until segments enabled in neutron by default) for the following new commands: - "os network segment list" - "os network segment show" These new commands are currently marked as beta commands. Change-Id: I1a79b48dc6820fe2a39fcceb11c8cae3bda413a0 Partially-Implements: blueprint routed-networks
* | Support deleting multi address scopes in networkv2Huanxuan Ao2016-05-281-4/+20
|/ | | | | | | | This patch adds support for deleting multi address scopes by using "address scope delete" command. Change-Id: Ic8d3ebc17db44ca5d42c336d2c4d5633f70d4e8b Partially-Implements: blueprint multi-argument-network
* Merge "remove #noqa from i18n imports"Jenkins2016-05-191-1/+1
|\
| * remove #noqa from i18n importsSteve Martinelli2016-05-131-1/+1
| | | | | | | | | | | | hacking checks no longer fail on `import _` Change-Id: Idd60f0a0e71e5081691eacb39e5091ab08fcce6d
* | Merge "Add ip version filter to subnet list"Jenkins2016-05-171-1/+13
|\ \
| * | Add ip version filter to subnet listManjeet Singh Bhatia2016-05-161-1/+13
| |/ | | | | | | | | | | | | | | This patch will add argument ip-version to command subnet list Change-Id: If7458d4979e53aec7e2633c4f1779c3810f9a3f1 Closes-Bug: #1581179
* | Merge "Enhance exception handling for "network delete" command"Jenkins2016-05-172-10/+47
|\ \
| * | Enhance exception handling for "network delete" commandTang Chen2016-04-142-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch rework "network delete" command following the rules in doc/source/command-errors.rst. In "network delete" command, there are multiple REST API calls, and we should make as many of them as possible. And log error for each one, give a better error message. Also return a non-zero exit code. Change-Id: I39ae087dd7bd08d049d513abfa6c5cab2bd13b2b Partial-Bug: #1556719
* | | Merge "Fix i18n support for help and error msg in network"Jenkins2016-05-167-14/+14
|\ \ \
| * | | Fix i18n support for help and error msg in networkTang Chen2016-05-167-14/+14
| | | | | | | | | | | | Change-Id: Iab0dc489226601ac4ff123bb758f84ff16989395
* | | | Merge "Add VLAN Transparent option to ``osc network``"Jenkins2016-05-161-4/+20
|\ \ \ \
| * | | | Add VLAN Transparent option to ``osc network``reedip2016-05-161-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osc network set and network create now support --transparent-vlan|--no-transparent-vlan options to add/remove vlan transparency from the network. Change-Id: I845eb8f541cd32a4c4b28f929a63b205e7e31756 Closes-Bug: 1545537
* | | | | Merge "Added --no-route to the router set command"Jenkins2016-05-161-2/+18
|\ \ \ \ \
| * | | | | Added --no-route to the router set commandHideki Saito2016-05-161-2/+18
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecated --clear-routes Closes-Bug #1565034 Change-Id: I4a8975edc026aecd2a362fd1929c984cfab8ade6
* | | | | Merge "Fix network router type display"Jenkins2016-05-161-5/+2
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Fix network router type displayRichard Theis2016-05-051-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenStack SDK maps the network "router:external" field to "is_router_external". However, OSC was using the incorrect mapping, "router_external". This caused OSC to display router type as "Internal" for all networks. Change-Id: Ifcd1349ab7c5881baee751936d076bf6aa058852 Closes-Bug: #1572228
* | | | | Additional network protocol supportRichard Theis2016-05-141-32/+152
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following network protocol support to the "os security group rule create" command: - Add "--icmp-type" and "--icmp-code" options for Network v2 only. These options can be used to set the ICMP type and code for ICMP IP protocols. - Change the "--proto" option to "--protocol". Using the "--proto" option is still supported, but is no longer documented and may be deprecated in a future release. - Add the following Network v2 IP protocols to the "--protocol" option: "ah", "dccp", "egp", "esp", "gre", "igmp", "ipv6-encap", "ipv6-frag", "ipv6-icmp", "ipv6-nonxt", "ipv6-opts", "ipv6-route", "ospf", "pgm", "rsvp", "sctp", "udplite", "vrrp" and integer representations [0-255]. The "os security group rule list" command now supports displaying the ICMP type and code for security group rules with the ICMP IP protocols. Change-Id: Ic84bc92bc7aa5ac08f6ef91660eb6c125a200eb3 Closes-Bug: #1519512 Implements: blueprint neutron-client
* | | | Merge "Implement "address scope set" command"Jenkins2016-05-111-0/+48
|\ \ \ \
| * | | | Implement "address scope set" commandHuanxuan Ao2016-05-111-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports setting address scope properties. Change-Id: I9c4b5068a8abb986a9dc18b167b48b924d16ff42 Closes-Bug: #1566269
* | | | | Merge "Implement "address scope show" command"Jenkins2016-05-111-0/+24
|\ \ \ \ \ | |/ / / /