Browse Source

Add new vif_details parameters

Added two new vif_details parameters:
  - connectivity: informs about the back-end connectivity level (l2,
    l3 or not specified).
  - bound_drivers: a dict of binding level to driver name.

Change-Id: I7786516672af795ac7f192504102a7388c6b7d80
Related-Bug: #1821058
tags/1.28.0
Rodolfo Alonso Hernandez 1 year ago
parent
commit
c26573f847
2 changed files with 16 additions and 0 deletions
  1. +7
    -0
      neutron_lib/api/definitions/portbindings.py
  2. +9
    -0
      releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml

+ 7
- 0
neutron_lib/api/definitions/portbindings.py View File

@@ -51,6 +51,8 @@ VIF_DETAILS_MACVTAP_SOURCE = 'macvtap_source'
VIF_DETAILS_MACVTAP_MODE = 'macvtap_mode'
VIF_DETAILS_PHYSICAL_INTERFACE = 'physical_interface'
VIF_DETAILS_BRIDGE_NAME = 'bridge_name'
VIF_DETAILS_CONNECTIVITY = 'connectivity'
VIF_DETAILS_BOUND_DRIVERS = 'bound_drivers'

# OVS bridge datapath type: String value used to define if the bridge uses
# kernel or userspace datapath.
@@ -117,6 +119,11 @@ VNIC_SMARTNIC = 'smart-nic'
VNIC_TYPES = [VNIC_NORMAL, VNIC_DIRECT, VNIC_MACVTAP, VNIC_BAREMETAL,
VNIC_DIRECT_PHYSICAL, VNIC_VIRTIO_FORWARDER, VNIC_SMARTNIC]

# VIF_DETAILS_CONNECTIVITY: Indicates what kind of connectivity the network
# back-end provides: L2, L3 or not specified.
CONNECTIVITY_L2 = 'l2'
CONNECTIVITY_L3 = 'l3'
CONNECTIVITY_LEGACY = 'legacy'

# The alias of the extension.
ALIAS = 'binding'


+ 9
- 0
releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml View File

@@ -0,0 +1,9 @@
---
features:
- |
Added two new parameters in ``portbindings.port.vif_details``:

* ``connectivity``: a string informing about the back-end connectivity
level (l2, l3 or not specified).
* ``bound_drivers``: a dictionary mapping the binding level to the driver
name.

Loading…
Cancel
Save