Skip to content

Commit

Permalink
Enhance AsPath attribute String() format
Browse files Browse the repository at this point in the history
Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
  • Loading branch information
rastislavs authored and fujita committed Jul 16, 2023
1 parent 9f2b647 commit f617588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/packet/bgp/bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10380,7 +10380,7 @@ func (p *PathAttributeAsPath) String() string {
for _, param := range p.Value {
params = append(params, param.String())
}
return strings.Join(params, " ")
return "{AsPath: " + strings.Join(params, " ") + "}"
}

func (p *PathAttributeAsPath) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit f617588

Please sign in to comment.