Commit Graph

40 Commits

Author SHA1 Message Date
wangjiaqi07 a0bd6be312 remove unicode from code
Change-Id: I5c47a6089c66972b330d0e6f344bb744ac46624d
2022-08-25 11:25:48 +08:00
Andreas Jaeger 94f17912c5 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I612722e75975d6cfd5fc61037834b675117019e7
2020-05-22 17:30:44 +00:00
Ghanshyam Mann 725d430d5d [Community goal] Update contributor documentation
As the Ussuri goal we have an OpenStack project wide contributing
documentation template [1]. os-vif use its own bug or feature
tracking LP and core team is also not exactly same as nova so adding
its own contributor guide with keeping common links from nova
with os-vif specific information.

Also the top level CONTRIBUTING.rst template has been changed in the
cookiecutter repo[2]. So this patch updates the CONTRIBUTING.rst according
to the new template.

[1] https://opendev.org/openstack/cookiecutter/src/branch/master/%7b%7bcookiecutter.repo_name%7d%7d/$
[2] https://review.opendev.org/#/c/696001

Change-Id: I6017fdbb403d4cd90f4c3c2bd4a197dfbb67f6ec
Story: #2007236
Task: #38541
2020-04-30 21:46:35 +00:00
Ghanshyam Mann 840df14b56 Fix doc build job for wanring turn into error
Few warnings are now failing as error:
- duplicate autoclass for VIFDirect
- case sensitive for glossary terms 'Linux Bridge'

Change-Id: I58d7fd85d98333bee387feff7b2c3d6f2f9102f4
2020-04-23 12:14:12 -05:00
Zuul 3a08cc4528 Merge "Fix code bug in document" 2019-09-02 12:51:59 +00:00
shaleijie 8727779308 Fix code bug in document
Object of SubnetList can not be created, as subnet is reassigned.

Change-Id: I0e105642e01a7fb66df02b0f396ce0eb706ce30b
2019-08-30 15:03:43 +08:00
pengyuesheng 2540f858cd Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Iacccbabe71f3b68bdf28ecc349571887f191a3cd
2019-08-01 10:28:56 +08:00
pengyuesheng 51070686bf Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: I5e0f4b120e3ea48e491d8d749b4903f5802976c4
2019-07-26 11:23:53 +08:00
jacky06 cef202b083 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Remove unncessary "=="

Closes-Bug: #1835804
Change-Id: I36fbb56a56832d535facd9bff25d352c8f0274a1
2019-07-08 17:16:33 +01:00
Stephen Finucane dfe319b386 docs: Use sphinx.ext.autodoc for profile, datapath offload types
This lets us keep all our docs in code where we can see them.

Change-Id: I78ae5afbf9d17ddfde57208402ed3813492c28bc
2019-02-26 10:19:19 +00:00
Stephen Finucane 8609f8a803 docs: Use sphinx.ext.autodoc for VIF types
This lets us keep all our docs in code where we can see them.

Change-Id: Ibac3e94aa3d5018afbc331982e245951dc0ccd4b
2019-02-26 10:19:14 +00:00
Jan Gutter e8f541fa0c Extend port profiles with datapath offload type
TC Offload capabilities have been present in Linux Kernel 4.13 for
hardware offloads. Currently OVS supports offloads (for OVS 2.8 and later)
with similar efforts planned for vrouter (OpenContrail and Tungsten
Fabric).

The existing method in os-vif is to pass the metadata required for
plugging via a VIFPortProfileOVSRepresentor port profile object. This is
used by the 'ovs' reference plugin and the external 'agilio_ovs' plugin.

With 'vrouter' being the third user of such metadata, it would be more
elegant to clean up this interface by using a composition pattern rather
than an inheritance based pattern.

Change-Id: I401ee6370dad68e62bc2d089e786a840d91d0267
Needed-By: I327894839a892a976cf314d4292b22ce247b0afa
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
blueprint: generic-os-vif-offloads
2019-01-14 17:23:22 +02:00
Jan Gutter 8606af13c7 Reflow docs to 79 columns
* This whitespace-only patch reflows the docs (mostly) to 79 columns,
  except for unbreakable links.
* The glossary also had a missing newline at the end of the file.

Change-Id: I8a6c741555de5ed62990fbb2c034651f73327784
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
2018-10-11 16:40:54 +02:00
Przemyslaw Lal d42b7bbbba add nested DPDK VIF classes for kuryr-kubernetes
This change adds new nested DPDK VIF type and port profile for use with nested
DPDK driver in kuryr-kubernetes.

Co-Authored-By: Gary Loughnane <gary.loughnane@intel.com>
Co-Authored-By: Kural Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Co-Authored-By: Marco Chiappero <marco.chiappero@intel.com>

Change-Id: Ib38c427b84606fd232c2ce35cab520790d6ad8ae
Signed-off-by: Przemyslaw Lal <przemyslawx.lal@intel.com>
2018-09-26 09:30:18 +02:00
Sean Mooney 9679783616 convert os-vif docs to follow PTI
- This change converts os-vif to use
  sphinx-build and doc/requirements.txt to
  be inline with new PTI requirements.
- This change tests docs requirements as part
  of the lower-constraints env.

Change-Id: Ic136941a17f90d6a6a8432fec96f8612c4bca8a2
2018-07-18 08:24:37 +00:00
Eric Fried 8d7c0d548d doc: Fix arg specs and object types in docs
The usage doc stated that plug and unplug accept a single argument of
type `os_vif.objects.VIF`, which isn't a thing, and then went on to give
an example showing that they take two.  The usage doc and the plug and
unplug docstrings also listed various objects at the wrong paths (e.g.
the `instance_info` param being of type `os_vif.objects.InstanceInfo`,
which also isn't a thing).

Fixed up the usage doc to list both arguments and correct the references
in the sample code; and fixed the plug/unplug docstrings
to list the proper paths to classes: os_vif.objects.vif.VIFBase and
os_vif.objects.instance_info.InstanceInfo.

Made everything in `single backticks` into a proper rst ``literal``.

Change-Id: I400838bbe9663917fe2c64f52975b77a370405b4
2018-07-16 17:55:22 +01:00
Stephen Finucane a0bdbcbdad doc: Fix formatting issues
- Definition lists can't have newlines between the term and definition
- Asterisks should be preferred to single backticks for italicising
  text, as the latter means "default role" which can be customized in
  some environments.
- Some literals aren't formatted as such

Change-Id: I0554a4ba49fd4cc071bc7f129686a7697b9c0d35
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2018-07-05 17:25:49 +01:00
Sean Mooney ba61a98117 add noop plugin
- This change adds a noop plugin
  for use with backends that auto connect
  to VIFs.

Change-Id: I4317ac2294526863d88be16ac54ecafc85ca9e1b
2018-07-05 16:20:22 +00:00
Stephen Finucane a464a638a6 doc: Remove cruft from releasenotes conf.py
Looks like this was copied from Glance's config, and retains a lot of
unnecessary config for same. Remove it all.

Change-Id: I559c9615f0243290d1eb7c410afc0d7d3b705e28
2017-07-20 11:40:17 +01:00
Jan Gutter 777ea9494e Add support for VIFPortProfileOVSRepresentor
* This patch adds support for a VF representor port profile,
  specifically supporting OVS. If representor_name is set, the os-vif
  plugin is requested to rename the representor to that.

* Some VIF types already have a VF associated with them. In that case,
  the PCI dev_address should copied to the VIF port profile subclassed
  object's representor_address for use by os-vif plug/unplug. The
  hypervisor will still use the VIF's dev_address for instance spawning.

Change-Id: Id95a9f311e71b3cefb170704728641a4a1a91144
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
2017-07-18 20:56:55 +00:00
Stephen Finucane ebe112f426 doc: Switch from oslosphinx to openstackdocstheme
Change-Id: Ifd8a56e971781aea41ec34814a1de9a94f1df841
2017-07-04 10:25:05 +01:00
Stephen Finucane 1d281bb70c doc: Create directory structure for docs migration
The spec [1] recommends the following sections:

- install
- contributor
- configuration
- cli
- admin
- user
- reference

Only two of these are useful here:

- user
- reference

Add these and populate them.

[1] specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration

Change-Id: Ieab6ad5ef43a172743053a1cffc8d46deb235277
2017-07-04 10:08:01 +01:00
Moshe Levi 2a09ede8fb hardware offload support for openvswitch
In Kernel 4.8 we introduced Traffic Control (TC see [1]) hardware offloads
framework for SR-IOV VFs which allows us to configure the NIC [2].
Subsequent OVS patches [3] allow us to use the TC framework
to offload OVS datapath rules.

This patch adds plug/unplug when using ovs vif 'OVS_ACCELERATION'. The
plug method will lookup the VF representor and connect it to 'br-int',
while the unplug method will remove the VF representor from 'br-int'.

[1] https://linux.die.net/man/8/tc
[2] http://netdevconf.org/1.2/papers/efraim-gerlitz-sriov-ovs-final.pdf
[3] https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/330606.html

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>

Change-Id: Ia8214d4da5edfdfc188dc4cf791613cb475dc4c3
2017-06-25 09:21:16 +03:00
Jenkins ab3ece6e37 Merge "Standardize README" 2017-04-26 17:12:14 +00:00
Jenkins 42522a61b2 Merge "Revert "hardware offload support for openvswitch"" 2017-04-26 15:16:22 +00:00
Stephen Finucane 310736b576 Standardize README
I had trouble finding the hosted docs for os-vif, which means others are
likely to too. Use the oslo-style README and refer people to other
resources.

Change-Id: I5d7791c86051c5fef20e3deb8bddc29991dd61e3
2017-04-26 15:02:24 +01:00
Stephen Finucane f154ef9cc8 Revert "hardware offload support for openvswitch"
This reverts commit 157bf4c5cc. The
feature hasn't merged into upstream OVS yet. We should wait until it
does so in the event that there are changes (or it fails to merge at
all).

Change-Id: I564cae602bd88d71ce0796202db764502b2108f1
2017-04-26 14:00:53 +00:00
Jenkins 4f43083284 Merge "Fix typos in vif_types.rst" 2017-04-26 11:47:13 +00:00
Moshe Levi 157bf4c5cc hardware offload support for openvswitch
In Kernel 4.8 we introduced Traffic Control (TC see [1]) hardware offloads
framework for SR-IOV VFs which allows us to configure the NIC [2].
Subsequent OVS patches [3] allow us to use the TC framework
to offload OVS datapath rules.

This patch adds plug/unplug when using ovs vif 'OVS_ACCELERATION'. The
plug method will lookup the VF representor and connect it to 'br-int',
while the unplug method will remove the VF representor from 'br-int'.

[1] https://linux.die.net/man/8/tc
[2] http://netdevconf.org/1.2/papers/efraim-gerlitz-sriov-ovs-final.pdf
[3] https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/330606.html

Change-Id: I90120119800cc2d3083b832700cc3d2ca655e638
2017-04-25 09:11:35 +03:00
Takashi NATSUME c6199c35fe Fix typos in vif_types.rst
TrivialFix
Change-Id: Ibcd7f10a2280076ee4caf2171244d5c1658acc36
2017-04-25 14:45:58 +09:00
Stephen Finucane e6d25e7c64 Add documentation for Linux Bridge plugin
Change-Id: I66943e95de66da8b10d04e86f596167798efde15
2017-04-25 08:16:14 +03:00
Moshe Levi 389743cc35 Add documentation for OVS plugin
Change-Id: I741d2f9dae18e0d294f87bea52b5638430eb30ce
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
2017-04-25 08:11:56 +03:00
Stephen Finucane ce96741177 docs: Stop building anything but html output
This lets us remove most of the settings in conf.py

Change-Id: I0d06faa2f1736d2e240487ec4e8cf9bc07268724
2017-04-13 10:43:55 +01:00
Stephen Finucane 5f21ae5bd5 doc: Add glossary
At the moment, these are a collection of links to other resources but
they can be populated further in the future.

Change-Id: I7be9eaba1989bd085389516e29f797a72b5a8417
2017-04-13 10:42:11 +01:00
Stephen Finucane 687785cb0e doc: Rewrap 'vif_types' document
This makes reading the source a lot easier. A small number of `code`
symbols are formatted as such.

Change-Id: Id9f223f0b424094e9f99d610b5f7b7731259d145
2017-04-03 10:38:17 +01:00
vagrant 0729026c1f Fix broken Link
The documentation build does not generate any module index,
thus remove the link to the page.

Change-Id: I474c6ddac47ffff266419868970a0c815bce66bd
2017-01-27 03:23:44 +03:00
Francesco Santoro a43f9b15e0 os-vif: add new port profiles to enable fast path vhostuser
The 6WIND fast path technology provides connectivity for
vhostuser ports in traditional networks (including ovs,
linuxbridge, calico).

This patch defines new port profiles to model fast path vhostuser
vifs in order to provide os-vif plugin with enough information
for plug/unplug ports.

Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com>

Change-Id: Ibae8e2ae145b2b9ad2b4955825638dee9b56f0aa
2016-12-13 10:10:18 +01:00
Daniel P. Berrange 447c153b2b os-vif: add initial documentation about object model
Start to fill out some content in the docs. This describes
the different VIF objects at a high level, and also the
host information objects and how they pass info to the
network service

Change-Id: I3455a756a64a1616c130cc96a8a834d6837aaa38
2016-09-28 12:04:58 +01:00
Daniel P. Berrange e5227ecbc0 Start using reno for release notes
Depends-on: I7174325294ba3cc978cbb1cff738b4b979adf9fb
Change-Id: Idc50dd5d408c67367256fb10efef5e772ffa83b1
2016-05-03 13:53:29 +01:00
Jay Pipes 8023f33453 Import of code from https://github.com/jaypipes/os_vif
Initial commit using code imported from

  https://github.com/jaypipes/os_vif

This patch also includes the following fixes to make the import pass all
jenkins jobs:
 - add doc/source/conf.py and index.rst
 - sync with global requirements

Change-Id: Iac6a9d45ea799eaa71f895af115e966c28246a22
2016-01-13 12:56:01 -05:00