diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index 23960be4a..f88e8973c 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -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) {