summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAntoine Eiche <antoine.eiche@cloudwatt.com>2016-06-13 08:33:52 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-06-14 16:46:39 +0900
commit4ee61e79461dabd8bd59222fda472d6a5586976c (patch)
tree3865fd9faf4ffa68acef9ca34dd5056366c961b2
parent69b416145ec63d0c96ebc8e41edef007c1552cbc (diff)
bgp: add dummy Flat method to PathAttribute
-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{