OpenStack Networking (Neutron)
Go to file
Rodolfo Alonso Hernandez c5d8fd6329 Use pyroute2 for SRIOV VF commands
Recent changes in some versions of iproute2 CLI output (v4.18),
have invalidated the regular expression used to parse the
"ip link" output.

To solve this problem and avoid future ones, pyroute2 is used to
retrieve the virtual functions information and set the VF attributes
(spoofcheck, min_tx_rate, max_tx_rate and link_state).

pyroute2 extended the "ip link" support to retrieve this information,
adding "ext_mask=1" in the get command. If no virtual functions are
present in this particular network interface, the added method,
"get_link_vfs",  will return an empty list.

The set commands can return a "InterfaceOperationNotSupported" in
case the operation is not supported. For min_tx_rate, if the driver
does not support to set a minimum bandwidth, an "InvalidArgument"
(from a pyroute2.NetlinkError(22)) exception will be raised.

Change-Id: I680da4f64bd114f1caecaaeedbf8a4b1915a0849
Closes-Bug: #1878042
2020-05-27 16:58:02 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
devstack Merge "port_forwarding: extend support for OVN usage" 2020-05-09 14:26:29 +00:00
doc Merge "Updates for python3.8" 2020-05-03 01:41:44 +00:00
etc Merge "Add a /healthcheck URL" 2020-05-03 20:26:22 +00:00
neutron Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
playbooks Migrate neutron grenade jobs to be native Zuul v3 2020-05-03 13:52:54 +02:00
rally-jobs Rally task definition for port binding scenario 2019-07-08 13:25:46 +02:00
releasenotes Use dhcp-host tag support when supported 2020-05-07 01:38:14 +02:00
roles Add MariaDB 10.3 repository for Ubuntu Bionic 2020-01-16 10:05:36 +00:00
tools Merge "migration: Use ForceNeutronDriverUpdate when migrating" 2020-05-08 11:36:20 +00:00
vagrant/ovn [OVN] Merge networking-ovn vagrant into neutron 2020-02-18 17:26:15 -05:00
zuul.d Merge "[OVN] Enable test_multicast_between_vms_on_same_network" 2020-05-06 15:39:58 +00:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Add etc/neutron/*.sample files to be ignored by git 2019-12-12 12:38:24 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:38:27 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Fix pylint R1717 (consider-using-dict-comprehension) refactor messages 2019-03-14 23:19:58 +00:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
bindep.txt Merge "Stop testing python 2" 2019-10-28 00:52:16 +00:00
CONTRIBUTING.rst [Community goal] Add contributor and PTL guide 2020-03-03 04:43:26 +01:00
HACKING.rst Remove references to unittest2 library 2020-01-14 09:03:26 +00:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
lower-constraints.txt Bump neutron-lib to 2.2.0 2020-03-10 14:14:15 +00:00
plugin.spec Add OSP16.1 choice to migration plugin spec 2020-05-04 20:34:16 +03:00
README.rst Start README.rst with a better title 2019-11-19 17:42:57 +01:00
requirements.txt Bump neutron-lib to 2.2.0 2020-03-10 14:14:15 +00:00
setup.cfg Add py38 package metadata 2020-05-02 07:48:14 -05:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
TESTING.rst Updates for python3.8 2020-04-28 14:03:21 -04:00
tox.ini Bump default tox env from py37 to py38 2020-04-24 10:25:46 -05:00

OpenStack Neutron

image

Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute, please read the CONTRIBUTING.rst file.