Skip to content

Incorrect PVID set for tagged VLAN members #5928

Open
@keboliu

Description

@keboliu

Description

If add an interface as a tagged member to a VLAN, the PVID of this interface will be set to 1, however VLAN 1 is the default VLAN and not exist in ASIC DB. Untagged packets arrived at this tagged member interface will trigger mac learning in VLAN1, and will cause "show mac" failure and other issues. like described in another issue sonic-net/sonic-utilities#894.

suggest setting PVID to some other value instead of using 1 when adding a tagged member to VLAN.

Steps to reproduce the issue:

  1. create a VLAN
  2. add an interface to the VLAN as a tagged member
  3. check the PVID of the newly added VLAN member.

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions