summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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
* | | | | Merge "Implement "address scope delete" command"Jenkins2016-05-111-0/+31
|\ \ \ \ \ | |/ / / /
| * | | | Implement "address scope delete" commandHuanxuan Ao2016-05-111-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add a command that supports deleting a address scope Change-Id: Ie028058c759b9511d105a530d7e89b841865e7d6 Partial-Bug: #1566269
* | | | | Merge "Implement "address scope create" command"Jenkins2016-05-111-0/+164
|\ \ \ \ \ | |/ / / /
| * | | | Implement "address scope create" commandHuanxuan Ao2016-05-111-0/+164
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch supports creating a new address scope, with --ip-version,--project,--project-domain and --share or --no-share options. Change-Id: I37c73391a41ac239dd72d55dbc0adbebd7701f4a Partial-Bug: #1566269
* | | | Trivial: Remove unuseful comments for assertRaise() checkingTang Chen2016-05-064-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Missing required args should bail here" is not understandable and not necessary. The code is obvious enough. And some of the comments are misused because of code copy. So remove them. Change-Id: I031395f2c882386c7a708db5cf4eee75393dc639
* | | | Remove unnecessary type conversions in network unit testsTang Chen2016-05-065-46/+52
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | In some tests, when comparing the results data with the expected ones, many unnecessary type conversions are used. So remove them to clean up. Change-Id: I560ca78a3ab5e7b99087bfe1667de500f92c68de Partial-bug: #1550633
* | | Merge "Fix router set --route option"Jenkins2016-05-031-6/+9
|\ \ \
| * | | Fix router set --route optionRichard Theis2016-04-182-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the "--route" option on the "os router set" command. The option did not properly format the new routes to set which resulted in a "HttpException: Bad Request" error. In addition, the output for routes was fixed to improve readability and to align with the "--route" option on the "os router set" command. Change-Id: I9c514153ec201e2feae32be6dd281771e3298b9c Closes-Bug: #1564460
* | | | remove assert in favor an if/elseMichael McCune2016-05-021-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the assert usage in the NonNegativeAction has the potential to allow unexpected behavior when the python is byte-compiled with optimization turned on. Changes * remove assert in favor of if/else in NonNegativeAction class * add type specifier to parser arguments for non-negative actions * correct tests for new int based values Change-Id: I093e7440b8beff4f179e2c4ed81daff82704c40e Closes-Bug: #1576375
* | | | Fixes BadRequest when no --pool-prefix givenInessa Vasilevskaya2016-04-271-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | --pool-prefix is made required on subnetpool creation. Closes-bug: #1536479 Change-Id: I3d183e45e9b96bc08011c36f45ec2b7a9c01b627
* | | | Merge "Add new share and default parms to subnet pool cmds"Jenkins2016-04-211-0/+86
|\ \ \ \
| * | | | Add new share and default parms to subnet pool cmdsBrad Behle2016-04-201-0/+86
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the "share" and "default" parms to subnet pool create command. Add the "default" and "no-default" parms to subnet pool set command. Note that "share" can not be modified once subnet pool has been created, so do not add this to the set command. Change-Id: I1eecad69527a1cde7fb234669f4aff2be2db491e Partial-Bug: #1544591 Partial-Bug: #1544586
* | | | Fix mutable default arguments in testsTang Chen2016-04-201-22/+32
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python’s default arguments are evaluated only once when the function is defined, not each time the function is called. This means that if you use a mutable default argument (like list and dict) and mutate it, you will and have mutated that object for all future calls to the function as well. More details about this wrong usage here: http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments In unit tests, most FakeXXX classes' methods take mutable arguments with default values [] or {}. We should change them to None. Change-Id: Iea833b66aa1379829511ad5c6d4432b72f3488e2 Closed-bug: #1550320
* | | Merge "Add provider network options to osc network set"Jenkins2016-04-191-0/+9
|\ \ \
| * | | Add provider network options to osc network setreedip2016-04-191-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | The following patch adds the provider network options to OSC "network set". Change-Id: I23b617077eda25d16164172a8e280082750eaf18 Partial-Bug: #1545537
* | | Add options to security group rule listRichard Theis2016-04-181-16/+83
|/ / | | | | | | | | | | | | | | | | | | | | Add the following options to the 'os security group rule list' command: --long: Display direction and ethertype for Network v2 --all-projects: Display information from all projects for Compute v2 Change-Id: If8a1cbd7669cdfa6577d6d2f6fffd9e999a39a82 Partial-Bug: #1519512 Implements: blueprint neutron-client
* | Merge "Append existing information during port set"Jenkins2016-04-151-1/+20
|\ \
| * | Append existing information during port setreedip2016-04-141-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Existing --fixed-ip and --binding-profile information is currently overwritten when a user executes 'port set', but actually that data should be appended. This patch fixes the issue. Closes-Bug: #1564453 Change-Id: I62500c10ccbbc68167f24e9d4fa49e85345d82c4
* | | Merge "Add external network options to osc network set"Jenkins2016-04-151-0/+9
|\ \ \
| * | | Add external network options to osc network setreedip2016-04-151-0/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds the options "--external" & "--internal" and the suboptions to "external": "--default" & "--no-default", to "osc network set" CLI to provide the user an option to set a network as an external network or remove the setting. Change-Id: I3a7f2cb249bc8101cbb01322d7732e913237d6cd Partial-Bug: #1545537
* | | Merge "Add project options to security group rule create"Jenkins2016-04-141-0/+41
|\ \ \
| * | | Add project options to security group rule createRichard Theis2016-04-111-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the --project and --project-domain options to the 'os security group rule create' command. These options are for Network v2 only. Change-Id: Ie3e136be076f0f2c22fbe7048d1d6eaebf5aa655 Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | | Merge "Add network options to security group rule create"Jenkins2016-04-141-2/+51
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Add network options to security group rule createRichard Theis2016-04-111-2/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following network options to the "os security group rule" command: (1) --ingress and --egress (2) --ethertype These options enable egress and IPv6 security group rules for Network v2. Change-Id: Ie30b5e95f94e0c087b0ce81e518de72d2dda25ad Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | Merge "Append existing information during subnet set"Jenkins2016-04-131-0/+20
|\ \ \