From c26573f847958fc090ba55b9c086a1cc5756b15d Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 21 Mar 2019 18:01:46 +0000 Subject: [PATCH] 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 --- neutron_lib/api/definitions/portbindings.py | 7 +++++++ .../new-vif-details-parameters-71e70ab5e7c26c45.yaml | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml diff --git a/neutron_lib/api/definitions/portbindings.py b/neutron_lib/api/definitions/portbindings.py index 5a2d21b53..7394ef7d4 100644 --- a/neutron_lib/api/definitions/portbindings.py +++ b/neutron_lib/api/definitions/portbindings.py @@ -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' diff --git a/releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml b/releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml new file mode 100644 index 000000000..0764399da --- /dev/null +++ b/releasenotes/notes/new-vif-details-parameters-71e70ab5e7c26c45.yaml @@ -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.