Integration library between network (Neutron) and compute (Nova) providers
Go to file
Sriharsha Basavapatna 84688a22db Fix VF-rep lookup routine to use parent PF number
The current logic in get_representor_port() matches the VF number with
the one in 'phys_port_name' file. If and when multiple PFs on the same
card are configured in switchdev mode, we could end up returning a wrong
representor device. Fix this by including the parent PF number also in
this logic, when 'pfXvfY' (or vfY@pfX) format is used in 'phys_port_name'
file.

This patch also provides corresponding changes in unit tests. The tests
have been updated to validate 'phys_port_name' in 'pfXvfY' format (in
addition to the simple format - vfX or X). The test case for 2 PFs
specifically utilizes the 'pfXvfY' format, since otherwise it won't
be possible to disambiguate VFs with the same VF-ID under 2 PFs on the
same card (switch).

Change-Id: I5727878b63026a19fafcf7e71dda3ba480432fbf
Closes-Bug: #1743494
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
2018-01-17 22:20:34 +00:00
doc/source doc: Remove cruft from releasenotes conf.py 2017-07-20 11:40:17 +01:00
os_vif Merge "adds iptools driver for ip commands" 2018-01-17 14:31:47 +00:00
releasenotes Remove setting of version/release from releasenotes 2017-11-16 22:00:30 +01:00
vif_plug_linux_bridge Migrate from 'ip' commands to 'pyroute2' 2018-01-08 10:17:42 +00:00
vif_plug_ovs Fix VF-rep lookup routine to use parent PF number 2018-01-17 22:20:34 +00:00
.coveragerc Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
.gitignore Git ignore .stestr 2018-01-15 16:18:50 +01:00
.gitreview Added .gitreview 2015-11-11 16:10:58 +00:00
.mailmap Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
.stestr.conf Migrate from 'ip' commands to 'pyroute2' 2018-01-08 10:17:42 +00:00
.testr.conf Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
CONTRIBUTING.rst Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
HACKING.rst Update the documentation link for doc migration 2017-07-24 17:20:28 +08:00
LICENSE Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
README.rst Update the documentation link for doc migration 2017-07-24 17:20:28 +08:00
babel.cfg Import of code from https://github.com/jaypipes/os_vif 2016-01-13 12:56:01 -05:00
requirements.txt Migrate from 'ip' commands to 'pyroute2' 2018-01-08 10:17:42 +00:00
setup.cfg Update the documentation link for doc migration 2017-07-24 17:20:28 +08:00
setup.py Updated from global requirements 2017-03-10 19:12:21 +00:00
test-requirements.txt Migrate from 'ip' commands to 'pyroute2' 2018-01-08 10:17:42 +00:00
tox.ini Migrate from 'ip' commands to 'pyroute2' 2018-01-08 10:17:42 +00:00

README.rst

Team and repository tags

image

os-vif

Latest Version

Downloads

A library for plugging and unplugging virtual interfaces in OpenStack.