summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network
Commit message (Collapse)AuthorAgeFilesLines
* Add command to unset information from Subnet-poolsreedip2016-06-301-0/+39
| | | | | | | | This patch introduces the ``subnet pool unset`` command to clear the pool prefix information from the subnet-pools. Change-Id: I84b7259d6e26e695343d41cea6d807396faaf69a Implements: blueprint network-property-unset
* Merge "Add "--device-owner" option to "port list""Jenkins2016-06-291-0/+41
|\
| * Add "--device-owner" option to "port list"Richard Theis2016-06-201-0/+41
| | | | | | | | | | | | | | | | Add "--device-owner" option to the "port list" command to enable listing ports based on device owner. Change-Id: I0a538ec41800b9f842e86dceb6ca4180ef239c95 Implements: blueprint neutron-client
* | Merge "Add command to unset information from Subnets"Jenkins2016-06-291-0/+106
|\ \
| * | Add command to unset information from Subnetsreedip2016-06-291-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the ``subnet unset`` command to clear the host-routes, allocation-pools and dns-nameservers from subnets. Implements: blueprint network-property-unset Change-Id: I31324a2423f6d2315eed27445dfdcfe863e0b550
* | | Merge "Add command to unset information from Routers"Jenkins2016-06-281-0/+51
|\ \ \ | |/ / |/| |
| * | Add command to unset information from Routersreedip2016-06-271-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the ``router unset`` command to clear the routing information from the routers. Implements: blueprint network-property-unset Change-Id: Iac8d32ca42fb28878805b4b58ab411b67fa6555b
* | | Merge "Support JSON data for port binding profile"Jenkins2016-06-231-0/+95
|\ \ \ | |/ / |/| |
| * | Support JSON data for port binding profileRichard Theis2016-06-201-0/+95
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Error handling of "router delete" command"Jenkins2016-06-201-7/+59
|\ \
| * | Error handling of "router delete" commandHuanxuan Ao2016-06-201-7/+59
| |/ | | | | | | | | | | | | | | "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-202-15/+84
|\ \ | |/ |/|
| * Add "--network-segment" option to "subnet create"Richard Theis2016-06-132-15/+84
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Support bulk deletion for delete commands in networkv2Huanxuan Ao2016-06-163-15/+156
| | | | | | | | | | | | | | | | | | | | | | | | 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-154-42/+394
|\ \ | | | | | | | | | compute."
| * | Support bulk deletion for commands that exist in both network and compute.Huanxuan Ao2016-06-154-42/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | osc-lib: utilsDean Troyer2016-06-136-7/+11
| | | | | | | | | | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* | osc-lib: exceptionsDean Troyer2016-06-135-6/+11
|/ | | | | | | | Use osc-lib directly for exceptions. Leave openstackclient.common.exceptions for deprecation period. Change-Id: Iea3e862302372e1b31ccd27f69db59b4953ca828
* Make set/unset commands in network return normally when nothing specifiedTang Chen2016-06-086-15/+50
| | | | | | | | | | | | | | 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
* Merge "Update unit test test_extension with fake class"Jenkins2016-06-081-18/+35
|\
| * Update unit test test_extension with fake classHuanxuan Ao2016-06-071-18/+35
| | | | | | | | | | | | | | Add FakeExtension class in networkv2, computev2, volumev2, identityv2_0 and update unit test test/common/test_extension.py Change-Id: I94815de7801860edb7fa91a7d146455cab946652
* | Merge "Support error handling for "port delete" command"Jenkins2016-06-071-7/+61
|\ \ | |/ |/|
| * Support error handling for "port delete" commandHuanxuan Ao2016-06-071-7/+61
| | | | | | | | | | | | | | | | | | | | "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-062-0/+224
|\ \
| * | Add network availability for oscManjeet Singh Bhatia2016-06-032-0/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements openstack client for network ip availability. Implements: blueprint neutron-ip-capacity Depends-On: I3b40d8edea87c068c4e8133e436511765064d5f8 Change-Id: Iffaa2e20ff495fbd205d3397e027e8141d04385e
* | | Merge "Check port name in set port tests"Jenkins2016-06-041-1/+5
|\ \ \
| * | | Check port name in set port testszhouqi2016-06-031-1/+5
| | |/ | |/| | | | | | | Change-Id: I1bf11245b107f82fedee70dacc37c4c6dc5210ea
* | | Fix --enable options on commandsRichard Theis2016-06-021-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add network segment command object"Jenkins2016-05-302-0/+251
|\ \
| * | Add network segment command objectRichard Theis2016-05-272-0/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-282-8/+81
|/ / | | | | | | | | | | | | | | This patch adds support for deleting multi address scopes by using "address scope delete" command. Change-Id: Ic8d3ebc17db44ca5d42c336d2c4d5633f70d4e8b Partially-Implements: blueprint multi-argument-network
* | Add network support for "quota set"Fang Zhen2016-05-191-0/+3
|/ | | | | | | | | | The "quota set" command support compute and volume quotas previously. This patch add support network. Partially-implements: blueprint neutron-client-quota Closes-bug: 1489441 Change-Id: I9d297f52bc30614b3493f09ed15f8f1d3f8ff952
* Merge "Add ip version filter to subnet list"Jenkins2016-05-171-0/+16
|\
| * Add ip version filter to subnet listManjeet Singh Bhatia2016-05-161-0/+16
| | | | | | | | | | | | | | | | 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-171-16/+133
|\ \
| * | Enhance exception handling for "network delete" commandTang Chen2016-04-141-16/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Add VLAN Transparent option to ``osc network``"Jenkins2016-05-161-0/+6
|\ \ \
| * | | Add VLAN Transparent option to ``osc network``reedip2016-05-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+36
|\ \ \ \
| * | | | Added --no-route to the router set commandHideki Saito2016-05-161-0/+36
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Deprecated --clear-routes Closes-Bug #1565034 Change-Id: I4a8975edc026aecd2a362fd1929c984cfab8ade6
* | | | Merge "Fix network router type display"Jenkins2016-05-162-10/+10
|\ \ \ \
| * | | | Fix network router type displayRichard Theis2016-05-052-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-142-12/+234
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+67
|\ \ \ \
| * | | | Implement "address scope set" commandHuanxuan Ao2016-05-111-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+53
|\ \ \ \ \ | |/ / / /
| * | | | Implement "address scope show" commandHuanxuan Ao2016-05-111-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports showing address scope details Change-Id: Ic0b41c1cab8c618904c7a6046d7493db5b74b430 Partial-Bug: #1566269
* | | | | Merge "Implement "address scope list" command"Jenkins2016-05-112-0/+60
|\ \ \ \ \ | |/ / / /
| * | | | Implement "address scope list" commandHuanxuan Ao2016-05-112-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports listing address scopes Change-Id: Id14757011560cacf28011ba51841a8e23b824f33 Partial-Bug: #1566269