summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add '--dhcp' and '--no-dhcp' options to os subnet list cmd"Jenkins2016-08-111-0/+15
|\
| * Add '--dhcp' and '--no-dhcp' options to os subnet list cmdCao Xuan Hoang2016-08-101-0/+15
| | | | | | | | | | | | | | | | This patch adds '--dhcp' and '--no-dhcp' options to filter subnets resulted by os subnet list command. Change-Id: Ib574cc54594845bc5c5afc38bf44e3b224d33b17 Partial-Bug: #1610883
* | Implement "network agent set" commandHuanxuan Ao2016-08-101-0/+41
|/ | | | | | | | | | Add "network agent set" command in network v2 to set network agent properties. Also add the unit test, doc, functional test and release note. Change-Id: Iebaee4c60f8c6b43f538c1b82a38b93178b9ce53 Implements: bp implement-network-agents Co-Authored-By: Michael Gugino <michael.gugino@walmart.com>
* Merge "Implement network agents functionality"Jenkins2016-08-051-0/+119
|\
| * Implement network agents functionalityMichael Gugino2016-08-051-0/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-neutronclient implements the following command set: agent-list, agent-show, agent-delete These commands display and modify various network agents and their information. python-openstacksdk has supported the api calls for these commands, but python-openstackclient does not implement these commands. This commit adds support for the following commands: openstack network agent list openstack network agent show <agent> openstack network agent delete <agent> Change-Id: I83ede6f89c37e7bdc38d7e9e7bb9d80e94c8becc Implements: blueprint implement-network-agents Depends-On: I9755637f76787d5fac8ff295ae273b308fcb98d0 Co-Authored-By: Huanxuan Ao <huanxuan.ao@easystack.cn>
* | Show "target_project_id" attribute properly for network rbac objectHuanxuan Ao2016-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the code in SDK: https://github.com/openstack/python-openstacksdk/blob/master/openstack/network/v2/rbac_policy.py#L34 we can see the conlumn of "target_tenant" should be "targer_project_id" but not "target_project". It is the reason why could not show the "target_project" in OSC, so this patch fix it. Before this change: (openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1 +----------------+--------------------------------------+ | Field | Value | +----------------+--------------------------------------+ | action | access_as_shared | | id | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 | | object_id | 8735b57f-606a-4f65-9902-2052a6d2a66d | | object_type | network | | project_id | 01c0ba43101b4080a52a5f79a55c56ff | | target_project | | +----------------+--------------------------------------+ After this change: (openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1 +-------------------+--------------------------------------+ | Field | Value | +-------------------+--------------------------------------+ | action | access_as_shared | | id | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 | | object_id | 8735b57f-606a-4f65-9902-2052a6d2a66d | | object_type | network | | project_id | 01c0ba43101b4080a52a5f79a55c56ff | | target_project_id | c7ab4d2ea9e1487095a8ca24ea44ef38 | +-------------------+--------------------------------------+ Change-Id: I53df127bfc3e43288c6afecdf872e6101b94a658 Closes-Bug: #1608903
* | Implement "network rbac set" commandHuanxuan Ao2016-08-031-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | Add "network rbac set" command which just supports setting a target project. Also, This patch adds the doc, unit test and functional test. But there is a bug of showing network RBAC https://bugs.launchpad.net/python-openstacksdk/+bug/1608903 We need to skip the functional test before this bug fixed. Change-Id: I756f448bb333cf1098a735e57a1c5dc4edf195d4 Partially-Implements: blueprint neutron-client-rbac
* | Merge "Implement network rbac create and delete commands"Jenkins2016-07-291-0/+132
|\ \ | |/ |/|
| * Implement network rbac create and delete commandsHuanxuan Ao2016-07-281-0/+132
| | | | | | | | | | | | | | | | | | Add "network rbac create" and "network rbac delete" commands and also add unit tests, functional tests, docs and release note for them. Change-Id: I5fd58342f2deaa9bae7717412a942a21bbd7d045 Partially-Implements: blueprint neutron-client-rbac
* | Standardize import formatshizhihui2016-07-221-1/+0
|/ | | | | | | | According to the rule in http://docs.openstack.org/developer/hacking/#imports I modify some irregular import format. Change-Id: Ibf29ccaf3ddec4a956334cc3368ebee7a66e282c
* Merge "Implement rbac list and show command"Jenkins2016-07-201-0/+75
|\
| * Implement rbac list and show commandting wang2016-06-271-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. implement "openstack network rbac list" 2. implement "openstack network rbac show" 3. also add FakeRBACPolicy to test "network rbac xxx" command The unit test class similar to FakeRouter, which is able to fake one or more rbac policies. It will be used by the rbac CRUD patches. Change-Id: I6c97bc8819698546895fd530464a2cbb347bf77d Co-Authored-By: Huanxuan Ao <huanxuan.ao@easystack.cn> Partially-Implements: blueprint neutron-client-rbac Depends-On: I88f409a24947b67146c0f93ec8480834cef56d2f
* | Merge "Transfer "ip floating CRUD" to "floating ip CRUD""Jenkins2016-07-201-5/+104
|\ \
| * | Transfer "ip floating CRUD" to "floating ip CRUD"Tang Chen2016-07-201-5/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does the following things to transfer "ip floating xxx" to "floating ip xxx": * Add new command "floating ip create/delete/list/show", and doc. * Deprecate "ip floating create/delete/list/show" command. Change-Id: Ib071acaac81988431244e858bddafa7f93403df5 Implements: blueprint rework-ip-commands Closes-bug: 1555990 Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
* | | Merge "Add port security option to network commands"Jenkins2016-07-201-0/+30
|\ \ \ | |/ / |/| |
| * | Add port security option to network commandsRichard Theis2016-06-291-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add the "--enable-port-security" and "--disable-port-security" options to the "network create" and "network set" commands. This supports setting the default port security for ports created on a network. Change-Id: I1deb505bd77cef2e4bc3c2dbbb0c450665136f47 Implements: blueprint neutron-client
* | | Exchange the check order for the dhcp and no-dhcpqtang2016-07-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dhcp is setting with True by default and progress always jump into the first if check. So the no-dhcp option always ignored there. Check the no-dhcp option first and then the dhcp option value to avoid this. Change-Id: Ide640e2cab3936d419ca62105304ff5d4a8a2074 Closes-Bug: #1602588
* | | Merge "Transfer "ip floating pool list" to "floating ip pool list""Jenkins2016-07-061-0/+66
|\ \ \
| * | | Transfer "ip floating pool list" to "floating ip pool list"Tang Chen2016-07-041-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does the following things to transfer "ip floating pool list" to "floating ip pool list": * Add a new command "floating ip pool list" to deprecate "ip floating pool list". The source code is in network/v2 dir. * Add doc for "floating ip pool list". * Add floating ip pool unit tests. Change-Id: Id410f4e4a96cf589a6e8def209574da71395b55f Implements: blueprint rework-ip-commands Partial-bug: 1555990 Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
* | | | Merge "Add command to unset information from ports"Jenkins2016-07-061-0/+59
|\ \ \ \ | |/ / / |/| | |
| * | | Add command to unset information from portsreedip2016-07-011-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the ``port unset`` command to clear the fixed-ip and binding:profile information from the ports. Implements: blueprint network-property-unset Change-Id: I9dba309234105af477e7618a8a437b7fa3b13cd7
* | | | Add command to unset information from Subnet-poolsreedip2016-06-301-0/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | 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-2/+12
|\ \ \
| * | | Add "--device-owner" option to "port list"Richard Theis2016-06-201-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+83
|\ \ \ \ | |_|/ / |/| | |
| * | | Add command to unset information from Subnetsreedip2016-06-291-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+43
|\ \ \ \
| * | | | Add command to unset information from Routersreedip2016-06-271-0/+43
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the ``router unset`` command to clear the routing information from the routers. Implements: blueprint network-property-unset Change-Id: Iac8d32ca42fb28878805b4b58ab411b67fa6555b
* | | | Merge "Fix typo in openstackclient/network/v2"Jenkins2016-06-282-5/+5
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix typo in openstackclient/network/v2Cao Xuan Hoang2016-06-232-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the missing "." to some docstring/text. Trivial fix Change-Id: Iffb470dcce7200ddc9e439c465adc652a8322708
* | | | 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-202-6/+11
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | osc-lib: commandDean Troyer2016-06-138-8/+8
| | | | | | | | | | | | | | 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-1311-11/+18
| | | | | | | | | | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* | osc-lib: exceptionsDean Troyer2016-06-134-5/+10
|/ | | | | | | | 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"