Skip to content

Commit

Permalink
Fix SR segment label unmarshaling
Browse files Browse the repository at this point in the history
Closes #2474
  • Loading branch information
Georgy Kirichenko authored and fujita committed Nov 24, 2021
1 parent 04899bd commit b26d1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/apiutil/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ func UnmarshalSRSegments(s []*any.Any) ([]bgp.TunnelEncapSubTLVInterface, error)
Type: bgp.EncapSubTLVType(bgp.TypeA),
Length: 6,
},
Label: v.Label << 12,
Label: v.Label,
}
if v.Flags.VFlag {
seg.Flags += 0x80
Expand Down

0 comments on commit b26d1da

Please sign in to comment.