summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/bgp/bgp.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 1d5b4941..ce92819a 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -3787,6 +3787,7 @@ type PathAttributeInterface interface {
GetType() BGPAttrType
String() string
MarshalJSON() ([]byte, error)
+ Flat() map[string]string
}
type PathAttribute struct {
@@ -7083,6 +7084,10 @@ func (e *MessageError) Error() string {
return e.Message
}
+func (p *PathAttribute) Flat() map[string]string {
+ return map[string]string{}
+}
+
func (l *LabeledVPNIPAddrPrefix) Flat() map[string]string {
prefixLen := l.IPAddrPrefixDefault.Length - uint8(8*(l.Labels.Len()+l.RD.Len()))
return map[string]string{