Jan Gutter f4329ffe18 Improve OVS Representor VF Lookup
This patch set addresses some of the concerns outlined in:
https://bugs.launchpad.net/os-vif/+bug/1704485

* Determining the VF number from the netdev's phys_port_name:
  phys_port_name is read and then cast to an int.

  Currently there is no standard method to associate a representor with
  the VF number.
  phys_port_name has emerged as the "default" choice, but merely casting
  it as a single number has shortcomings:

  * A switchdev can potentially have VFs, PFs and physical ports as
    representors.
  * A switchdev can have multiple PFs.

  In this case, the recommendation is to use a parse tree that accepts
  naming conventions like:

  * 42
  * vf42
  * PF1VF42
  * vf42@PF1

* Test cases have been added for the above scenarios.

* An internal function for PF matching has been added for future use.
  This is important when PF representors are eventually exposed.

Change-Id: I051fcc6fd136b389a6200076bd6fc3b73b626d5e
Closes-Bug: #1704485
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
2017-07-19 14:40:59 -04:00
2016-05-03 13:53:29 +01:00
2015-11-11 16:10:58 +00:00
2017-04-26 15:02:24 +01:00
2017-03-10 19:12:21 +00:00
2017-07-11 10:53:10 +08:00

Team and repository tags

image

os-vif

Latest Version

Downloads

A library for plugging and unplugging virtual interfaces in OpenStack.

Description
Integration library between network (Neutron) and compute (Nova) providers
Readme 7.9 MiB
Languages
Python 100%