This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Ib26b09734789b398acd8f104081d8679174243b1
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.
Change-Id: I86ae28e6042d1fac2b08540add8a9e23c9254c86
This replaces the doc-migration work. We can avoid the maintenance
cost by generating CLI reference for neutron CLI like this.
This patch introduces a new sphinx directive to render CLI
global options to achieve the goal. This can be migrated to
cliff sphinxext later.
Change-Id: I7089df3f7fc6475ebdd1e71221492baf12f18226
Recently cliff introduced a sphinx extension directive named autoprogram-cliff
which genarates command-line help automatically. By using it, we no longer
need to write command-line help document separately.
Also fixes minor string substitution issue in a BGPVPN command.
Note that the new cliff release with the directive is not released yet,
but there are several number of OSC plugin commands proposed and
having a local copy would help such developers.
Change-Id: I6b1aee89f406ac449fbc43e210c4ca7ad901b19b
* Move OSC first as neutron CLI is deprecated
* Add more information on OSC usage (links to embeded command list
and the mapping guide)
* Add deprecation notice for neutron CLI
This commit also makes toctree structure simpler
At now, we have two index page unlinked from the top page.
I thought it is good first, but it potentially makes things tricky.
Let's remove such tweaks for easy maintenance.
Change-Id: I7fd79f465fa6c04bf5b13f6578796d4c2d01edfd
In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.
Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.
Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file
exists and causes hacking rule unit tests.
Change-Id: I61e683ab0119e4ae90b7107f0690528d789e3875
It allows us to generate CLI references automatically using cliff.sphinxext
(which will be available in the next release of cliff).
This allows us to avoid maintaining the in-tree CLI refernece manually.
Change-Id: I3950ed8cf50508210c8b3270724e283aea8e1673
The new simple configuration way was introduced in
openstackdocstheme 1.11.0. This commit introduces the new way.
Also drops unnecessary sphinx configurations like latex,
texinfo and manpages.
Change-Id: I587eb8cbd3e64c65dfc7247a01eca90af6adad4e
The neutron client that inherits from keystonauth1 can now use the
built in 2.21.0 global_request_id handling. This just cleans up some
code in the process.
Change-Id: I6df5c98ebf447d3e3783ef23b4ef4d8e8af94c9b
NeutronClientException is an exception raised from API bindings
and it should not be used in CLI layer.
TrivialFix
Change-Id: I3df4c7352c96f10388df65bd16016b3ceb221248
OSC unit tests inherits osc_lib.test.utils and mock.patch.stopall
(or stop) is not called anywhere.
Change-Id: I1249678be7a7c823ea3824bf08e603864de023fd
This provides the facility to take global_request_id as a construction
parameter for a neutron client, and pass it through the system. This
will be used by Nova and others to set global_request_id so requests
can be tracked across services.
oslo spec I65de8261746b25d45e105394f4eeb95b9cb3bd42
Change-Id: I7ed48ad247676c71a3a7b12585572c398dda06e0
Currently even if machine-readable format like JSON or YAML is specified,
formatted output is displayed. When machine-readable format is used,
they should not be converted by formatters.
Change-Id: I5f1e90ff60f30380106e1aa730f96a1f72c7a166
Closes-Bug: #1687955
In FWaaS UT, fwaas.fakes.FirewallRule is expected to return the same
values returned from the API, but it returns 'any' for 'protocol'.
In FWaaS API definition, JSON null (None in python) means 'any',
so it should be None rather than 'any'.
This commit fixes it and related codes in test_firewall.py.
_generate_data() generates expected formatted data from API data.
The same logic is also needed in _update_expect_response(). This commit
introduces a common function _replace_display_columns to do this.
Change-Id: If4fa6b26f72003b6c94020a762a5c19d17b338cd
In favor of the private i18n wrapper (_i18n), the public 'i18n' wrapper
has been deprecated for several releases. Each neutron CLI plugin
(not OSC plugin) should use its own i18n wrapper and the usage of
neutronclient.i18n wrapper was deprecated. It is time to drop this.
Also fixes test_exception.py which still consumed neutronclient.i18n.
Change-Id: I27a8ace2f31bea5e1d6bf8a5ebbbfa52a3228e73
Added a check if the tag values is empty or not before adding that tag
to the network.
Change-Id: I92659da97fe829a7715d0bef5570a4d9c5db95da
Closes-Bug: #1603292
This change fixes UT failures introduced by os-client-config===1.27.0
(and [1] in particular) that was masking the fact that these tests
were not specifying the required 'token' identity plugin.
[1] e6755872ad
Change-Id: I9521a7e1bff39c1d25b998ca12c450890517fd2f
Neutron supports adding tags for several resources:
network, port, subnet, subnetpool, router,
but neutronclient only support to add tags for network,
support for others .
Change-Id: Iae8da2fa0e18e14ba27ce5232db8da5fe6eb0b86
Closes-Bug: #1676697