Skip to content

Commit

Permalink
pkg/packet/bgp: fix Type 2 ST route JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
higebu authored and fujita committed Mar 26, 2023
1 parent b1ed1f1 commit 43cb0f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/packet/bgp/mup.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,10 @@ func (r *MUPType2SessionTransformedRoute) MarshalJSON() ([]byte, error) {
EndpointAddress string `json:"endpoint_address"`
TEID string `json:"teid"`
}{
RD: r.RD,
EndpointAddress: r.EndpointAddress.String(),
TEID: r.TEID.String(),
RD: r.RD,
EndpointAddressLength: r.EndpointAddressLength,
EndpointAddress: r.EndpointAddress.String(),
TEID: r.TEID.String(),
})
}

Expand Down

0 comments on commit 43cb0f5

Please sign in to comment.