Skip to content

Commit

Permalink
fix(evpn-bridge): disable pvid on vlans for bridge ports
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Markou <dimitrios.markou@ericsson.com>
  • Loading branch information
mardim91 committed Apr 8, 2024
1 parent 32e2992 commit a6fa8fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/LinuxGeneralModule/lgm.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func setUpTenantBridge() {
brTenantMtu := ipMtu + 20
vlanfiltering := true
bridge := &netlink.Bridge{LinkAttrs: netlink.LinkAttrs{Name: brTenant},
VlanDefaultPVID: nil,
VlanDefaultPVID: new(uint16),
VlanFiltering: &vlanfiltering,
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/LinuxVendorModule/ipu/ipu.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func setUpBp(bp *infradb.BridgePort) bool {
}
//TODO: Update opi-api to change vlanid to uint16 in LogiclaBridge
vid := uint16(BrObj.Spec.VlanID)
if err = nlink.BridgeVlanAdd(ctx, vlanLink, vid, true, false, false, false); err != nil {
if err = nlink.BridgeVlanAdd(ctx, vlanLink, vid, false, false, false, false); err != nil {
log.Printf("Failed to add VLAN %d to bridge interface %s: %v\n", vportID, link, err)
return false
}
Expand Down

0 comments on commit a6fa8fe

Please sign in to comment.