summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2
Commit message (Collapse)AuthorAgeFilesLines
* Do not always init compute_client when doint port list3.11.0Vasyl Saienko2017-05-041-1/+1
| | | | | | | | | This patch ensures that compute client is initialized only when needed (--server arg is passed) to openstack port list command. Otherwise it leads to failures on installations without Nova. Change-Id: I102683461daa2f7d05dd9d7a3ec72de551c65ca9 Closes-Bug: #1688194
* Fix Nova-net netowrk commandsDean Troyer2017-04-271-22/+23
| | | | | | | | | | | | In cleaning up functional tests for nova-net, I discovered some problems in network create: * --subnet option is required in network create command * Switch API to use /os-networks rather than /os-tenant-networks as this is what we were actually using via novaclient * Fix functional tests for nova-net * Normalize some private function names in network/v2/network.py Change-Id: I426b864406756d58d140575a3a45ee9aee67ce84
* Merge "SDK refactor: Set "is_admin_state_up" for network agent"Jenkins2017-04-261-2/+2
|\
| * SDK refactor: Set "is_admin_state_up" for network agentHuanxuan Ao2017-02-021-2/+2
| | | | | | | | | | | | | | | | OpenStackSDK is >=0.9.13 now in requirement, so we can update "is_admin_state_up" as well for the SDK refactor Change-Id: I02de0ebc752ce602032bbe9d73256ed376993e78
* | Low-level Compute v2 API: floating ip poolDean Troyer2017-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 floating ip pool function. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Also includes a handful of cleanups that the previous security group and floating IP reviews missed. Change-Id: I20116ec4fc1113857d8d917bfb30fa3170d05b9f
* | Low-level Compute v2 API: networkDean Troyer2017-04-171-17/+13
| | | | | | | | | | | | | | | | | | | | api.compute.APIv2 network functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: If230f128e91cda44461fe93c976cac2aecec2252
* | Merge "Low-level Compute v2 API: floating ip"Jenkins2017-04-171-18/+9
|\ \
| * | Low-level Compute v2 API: floating ipDean Troyer2017-04-111-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 floating ip functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: Ic461b8d15e072e0534dcd73fff6857581d83c89b
* | | Merge "Low-level Compute v2 API: security group rules"Jenkins2017-04-171-9/+9
|\ \ \
| * | | Low-level Compute v2 API: security group rulesDean Troyer2017-04-111-9/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 security group rule functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: Ieabd61113bc6d3562738686f52bb06aa84fca765
* | | Merge "Low-level Compute v2 API: security group"Jenkins2017-04-172-44/+34
|\ \ \ | |/ /
| * | Low-level Compute v2 API: security groupDean Troyer2017-04-112-44/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 starts with security group functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: Id007535f0598226a8202716232313e37fe6247f9
* | | Merge "Allow override of distributed router flag"Jenkins2017-04-171-5/+8
|\ \ \ | |/ / |/| |
| * | Allow override of distributed router flagvenkata anil2017-04-061-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When router_distributed=True is set in neutron.conf, user can't override this and create a centralized router through openstack client. Openstack client allows modifying routers from distributed to centralized after creation but not supporting centralized flag during creation. We allow centralized and distributed flags during router creation with this change. Closes-bug: #1664255 Change-Id: I75f72ca695338ad8c381cfa89fbb9d8e61ee7bc5
* | | Merge ""floating ip set/unset port" for OSC"Jenkins2017-04-061-0/+74
|\ \ \
| * | | "floating ip set/unset port" for OSCSindhu Devale2017-04-051-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements Neutron feature of floating ip associate/disassociate into OpenStack Client. Previously, network.find_ip() function only supported to search floating ip by UUID. Hence, _find_floating_ip() function is used in floating_ip.py, to search fip both by UUID and ip_address. [1] adds the ability to find fip object using both UUID and ip_address. This functionality however, won't be available until the SDK is released. Hence, we continue to use _find_floating_ip() method, which was cleaned up by [2] to remove the use of ip_cache. Once, the SDK is released, we will remove all the usage of _find_floating_ip() method and instead only use network.find_ip(). [1] https://review.openstack.org/#/c/449879/2 [2] https://review.openstack.org/#/c/447938/ Change-Id: I6c5222287c46ca42365917d2deae70bdb626347 Co-Authored-By: Reedip<reedip.banerjee@nectechnologies.in> Co-Authored-By: RuiChen<chenrui.momo@gmail.com> Closes-Bug: #1560297
* | | | Merge "Add "qos-policy" option to "port create" & "port set""Jenkins2017-04-061-2/+30
|\ \ \ \ | |_|/ / |/| | |
| * | | Add "qos-policy" option to "port create" & "port set"Ha Van Tu2017-04-051-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds "qos-policy" option to "port create" command, and "qos-policy", "no-qos-policy" options to "port set" command and "qos-policy" option to "port unset". Change-Id: I78072e1ff0dd30a2e23a0fb833ce6ab5cf246016 Co-Authored-By: Nguyen Phuong An <AnNP@vn.fujitsu.com> Co-Authored-By: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> Partial-Bug: #1612136 Partially-Implements: blueprint network-commands-options
* | | | Merge "Enable to create legacy router"Jenkins2017-04-051-2/+10
|\ \ \ \ | |/ / / |/| | |
| * | | Enable to create legacy routerCedric Brandily2017-03-311-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some deployments create by default HA routers, this change enables to force the creation of a legacy router using: openstack router create --no-ha ... Closes-Bug: #1675514 Change-Id: I78f7dc3640a2acfdaf085e0e387b30373e8415f1
* | | | Merge "Structure FindFloatingIP() to work without ip_cache"Jenkins2017-04-041-21/+7
|\ \ \ \ | | |/ / | |/| |
| * | | Structure FindFloatingIP() to work without ip_cacheReedip2017-04-041-21/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we have an ip_cache returned from _find_floating_ip() which is generally ignored as it is not always required. This patch removes the need of ip_cache in _find_floating_ip(). Co-Authored-By: Sindhu Devale<sindhu.devale@intel.com> Change-Id: I8b92271185f82f275fa73adad03e9dad70be70e4
* | | | Merge "Help/docs cleanups: marker, limit, ip-address metavars"Jenkins2017-04-044-13/+13
|\ \ \ \ | |/ / / |/| | |
| * | | Help/docs cleanups: marker, limit, ip-address metavarsDean Troyer2017-04-044-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup help strings and docs for clarity and to keep things consistent: * --limit metavar should be <num-resource> to indicate what is being counted * --marker metavar should be <resource> or <resource-id> to indicate the type of value being specified * <*-ip-address> metavars should be just <ip-address> as there is no difference in format between fixed and floating IPs * Move all occurances of '(name or ID)' to end of help text Change-Id: I2c31746ed6ded3845244e03e57d809f8bc0e6b9d
* | | | Introduce neutron flavor associate, disassociate to OSCShashank Kumar Shankar2017-04-031-0/+57
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces network flavor associate and disassociate to OSC. The following neutron equivalent commands are implemented in OSC: - neutron flavor-associate - neutron flavor-disassociate Change-Id: Icba4dbf7300a36353142586359059cd6784049dc
* | | Merge "Simplify logic around option lists in port set"Jenkins2017-03-271-42/+47
|\ \ \ | |/ / |/| |
| * | Simplify logic around option lists in port setDean Troyer2017-03-201-42/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a common pattern to handle option pairs --XYZ and --no-XYZ for managing lists of attributes. This pattern looks at the presence of the option in parsed_args first and branches as necessary. Some specific steps are included for the SDK Network resources to reliably set the 'dirty' flag for changed attributes via one or both of the following: * iterate over lists of original resource attributes to force the creation of a new list object * use [].extend() rather than += to add to the existing list (substitute {}.update() for dicts) Change-Id: I0c3f9a52ffe1ae2b5b230cb13d6376dd9131aaf9
* | | Merge "Fix Trivial Changes in [1]"Jenkins2017-03-211-8/+8
|\ \ \
| * | | Fix Trivial Changes in [1]Reedip2017-03-211-8/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] had some trivial changes in the main code, which are being put forward in this patch, to consider future scenarios. [1]: I77a933f4b3ce875c63cef5b6a32aee78fd844b03 TrivialFix Change-Id: I8e8fbb194cd319e5605f09c94ae09e952d0961b1
* | | Merge "OSC Network Flavor Profile"Jenkins2017-03-211-0/+250
|\ \ \ | |/ / |/| |
| * | OSC Network Flavor ProfileNakul Dahiwade2017-03-201-0/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Neutron feature of Network Flavor Profile into OpenstackClient This patch implements the following commands: network flavor profile create network flavor profile delete network flavor profile list network flavor profile show network flavor profile set SDK Version needed: 0.9.9 Change-Id: Ie6fe5e53122cfb2eda8d326851d54562739a8386 Partially-Implements: blueprint neutron-client-flavors
* | | Merge "Introduce Neutron DHCP agent commands to OSC"Jenkins2017-03-202-22/+138
|\ \ \
| * | | Introduce Neutron DHCP agent commands to OSCShashank Kumar Shankar2017-03-202-22/+138
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces neutron dhcp-agent related commands to OpenStack client. The equivalent neutron commands implemented in OSC: neutron: dhcp-agent-list-hosting-net OSC: network agent list --network neutron: dhcp-agent-network-add OSC: network agent add network neutron: dhcp-agent-network-remove OSC: network agent remove network neutron: net-list-on-dhcp-agent OSC: network list --agent Change-Id: I77a933f4b3ce875c63cef5b6a32aee78fd844b03
* | | Merge "Make MAC address of port updatable"Jenkins2017-03-201-7/+7
|\ \ \
| * | | Make MAC address of port updatableBence Romsics2017-03-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstackclient does not allow the update of a port's MAC address. However this is possible in neutron API (though by default policy it is an admin-only operation). Allow it in openstackclient too. Change-Id: Ibd9e0a6fbd1d0d461b8a8daee24dbb7c3f929df6 Closes-Bug: #1670707
* | | | Merge "Add extra filtering options to qos policy list"Jenkins2017-03-201-4/+25
|\ \ \ \
| * | | | Add extra filtering options to qos policy listlvjiawei2017-03-141-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch adds filtering "--project", "--project-domain", "--share", "--no-share" options to qos policy list. Change-Id: I5c012fb27fb952f736ddc9fbc54ef6da4d0af5e0 Partially-Implements: blueprint network-commands-options
* | | | | Merge "Fix "security group list" command to display project ID properly"Jenkins2017-03-161-18/+32
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Fix "security group list" command to display project ID properlyHuanxuan Ao2017-03-101-18/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "Project" column of the output of "security group list" command is blank since the new attribute name is "project_id" not "tenant_id" in network resource, so change it to display project IDs properly Change-Id: Ie2a071afac3b5a8aaa2c6f1c50d44ae06905d916 Closes-bug: #1659967
* | | | | Merge "Add the bgp agent type to network agent command"Jenkins2017-03-161-3/+5
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Add the bgp agent type to network agent commandJens Rosenboom2017-03-081-3/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The neutron-dynamic-routing project provides an agent called neutron-bgp-dragent with type "BGP dynamic routing agent". So we need to add this option and can avoid using the deprecated neutron CLI e.g. in [1]. [1] https://docs.openstack.org/ocata/networking-guide/config-bgp-dynamic-routing.html#verify-service-operation Change-Id: I9af1e09d122806b56b966295817d8d31393e0283 Closes-Bug: 1671040
* | | | Merge "Fix handling the use_default_subnet_pool attribute"Jenkins2017-03-101-2/+8
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix handling the use_default_subnet_pool attributeJens Rosenboom2017-03-091-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attribute formerly wasn't working because it is lacking support in the SDK. The patch to add it[1] introduced a modified spelling, so we should be matching this here. Also make sure that the attribute is not shown when displaying subnet objects, as it is meant to be invisible[2]. [1] I72c0be77d96f3891748cdd69c382211dc20dbf5e [2] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/extensions/default_subnetpools.py#n23 Change-Id: Ic125b818a6082d76a1114fe89e0b1fcf4c7356b0 Partial-Bug: 1668223
* | | | command list: Move network meter appropriatelyAkihiro Motoki2017-03-081-0/+0
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 'network meter' commands are not placed alphabetically in the command list. It was due to the incorrect filename. Trivial Fix Change-Id: I7a76d3133915883cf41be8c7430def284d292d6e
* | | Merge "Auto allocated topology for OSC"Jenkins2017-03-011-0/+136
|\ \ \
| * | | Auto allocated topology for OSCAnkur Gupta2017-02-221-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of Auto-allocated topology into OSC. Dependency merged and released in SDK v. 0.9.11 Partially Implements: blueprint network-auto-allocated-topology Change-Id: I16120910893b0b26b0f7f77a184b0378448458c5
* | | | Port set/unset SecGroup Bug FixAnkur Gupta2017-02-261-25/+23
| |/ / |/| | | | | | | | | | | | | | | | | | | | Throwing error 'Port' object has no attribute 'security_groups' Fix for set and unset. Change-Id: I1a0625b5a432c7a91cf40249ce4f7c883f53d704 Closes-Bug: #1656788
* | | Fix output of ListSecurityGroupRuleJens Rosenboom2017-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The Ethertype column was always left empty because a wrong column name was being used. Change-Id: I7fc0f8d5eb7bac1efb234faba454dad0a45a7e6a Closes-Bug: 1667699
* | | Merge "Fix can not set is_default in network"Jenkins2017-02-241-4/+4
|\ \ \ | |/ / |/| |
| * | Fix can not set is_default in networkjiahui.qiang2017-02-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of is_default always be None, can not be set by "network set" command. Allow "--default" and "--no-default" options to be recognized when ``--external`` is not present. Closes-bug:#1665231 Change-Id: I7a05fc7734a15994f72ca4e47997b4952f1f72f8