Bug 2084474

Summary: [RFE] [RHEL] Support configuring bridge.vlan-protocol
Product: Red Hat Enterprise Linux 9 Reporter: Germano Veit Michel <gveitmic>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact: Jaroslav Klech <jklech>
Priority: unspecified    
Version: 9.1CC: ellorent, ferferna, fge, germano, jiji, jishi, jklech, network-qe, phoracek, sfaye, till
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.Support for the 802.ad `vlan-protocol` option in `nmstate` The `nmstate` API now supports creating the `linux-bridge` interfaces using the 802.ad `vlan-protocol` option. This feature enables the configuration of Service-Tag VLANs. The following example illustrates usage of this functionality in a `yaml` configuration file. ---- --- interfaces: - name: br0 type: linux-bridge state: up bridge: options: vlan-protocol: 802.1ad port: - name: eth1 vlan: mode: trunk trunk-tags: - id: 500 ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:00:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2084363, 2084478    

Description Germano Veit Michel 2022-05-12 08:36:25 UTC
Description of problem:

This is a request to add the following setting to RHEL nmstate:

# nmcli con mod br1 bridge.vlan-protocol 802.1ad

Which ends up here:
/sys/class/net/br1/bridge/vlan_protocol 

It is important to enable the use of vlan stacking (802.1ad) where an S-Tag is pushed by the hypervisor and each Guest can have its own C-Tags.

To be consumed in OpenShift Virtualization by BZ2084363

Comment 3 sfaye 2022-06-16 08:06:06 UTC
*** Bug 2084478 has been marked as a duplicate of this bug. ***

Comment 4 Gris Ge 2022-06-21 04:18:05 UTC
Patch posted to https://github.com/nmstate/nmstate/pull/1938

Adding support of linux bridge VLAN protocol: 802.1q(default) and 802.1ad.

Example yaml:

```yaml
---
interfaces:
  - name: br0
    type: linux-bridge
    state: up
    bridge:
      options:
        vlan-protocol: 802.1ad
      port:
        - name: eth1
          vlan:
            mode: trunk
            trunk-tags:
            - id: 500
```

Comment 8 Fernando F. Mancera 2022-06-29 13:38:02 UTC
I have tested this manually.

Comment 11 Mingyu Shi 2022-08-05 03:27:37 UTC
Verified with:
nmstate-2.1.3-1.el9.x86_64
NetworkManager-1.39.10-1.el9.x86_64

Comment 15 errata-xmlrpc 2022-11-15 10:00:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7991