OpenStack Networking (Neutron)
Go to file
Rodolfo Alonso Hernandez 2b2abfc76a 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.

Conflicts:
    neutron/tests/unit/agent/linux/test_ip_link_support.py

Change-Id: I680da4f64bd114f1caecaaeedbf8a4b1915a0849
Closes-Bug: #1878042
(cherry picked from commit c5d8fd6329)
2020-06-26 06:09:48 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
devstack Fix ussuri gates 2020-06-21 23:54:59 +02:00
doc [OVN] Enhance port's extra DHCP options support 2020-06-03 13:21:39 +01:00
etc Add rootwrap filter rule for radvd-kill script 2020-04-16 20:10:28 +00:00
neutron Use pyroute2 for SRIOV VF commands 2020-06-26 06:09:48 +00:00
playbooks Migrate neutron grenade jobs to be native Zuul v3 2020-06-21 23:55:09 +02:00
rally-jobs Rally task definition for port binding scenario 2019-07-08 13:25:46 +02:00
releasenotes Allow usage of legacy 3rd-party interface drivers 2020-05-20 22:03:38 +00:00
roles Fix ussuri gates 2020-06-21 23:54:59 +02:00
tools Fix ussuri gates 2020-06-21 23:54:59 +02:00
vagrant/ovn [OVN] Merge networking-ovn vagrant into neutron 2020-02-18 17:26:15 -05:00
zuul.d Migrate neutron grenade jobs to be native Zuul v3 2020-06-21 23:55:09 +02: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 Update .gitreview for stable/ussuri 2020-04-24 12:48:14 +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
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
README.rst Start README.rst with a better title 2019-11-19 17:42:57 +01:00
TESTING.rst Update TOX_ENV_SRC_MODULES example 2019-12-18 11:37:38 -05: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
lower-constraints.txt Bump neutron-lib to 2.2.0 2020-03-10 14:14:15 +00:00
plugin.spec Migrate the OVN migration scripts 2020-03-31 15:35:35 +01:00
requirements.txt Bump neutron-lib to 2.2.0 2020-03-10 14:14:15 +00:00
setup.cfg Migrate the OVN migration scripts 2020-03-31 15:35:35 +01:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Cap pycodestyle to be < 2.6.0 2020-05-12 15:08:40 -04:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/ussuri 2020-04-24 12:48:18 +00:00

README.rst

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.