summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/bgp.go
diff options
context:
space:
mode:
authorAntoine Eiche <antoine.eiche@cloudwatt.com>2016-06-13 15:35:33 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-06-14 16:46:39 +0900
commitfb7617b988b05e6100dffa72fcbe818f82ad9a13 (patch)
tree7a474b6a6e4419a801c46744e6c5c95f18deba56 /packet/bgp/bgp.go
parent4ee61e79461dabd8bd59222fda472d6a5586976c (diff)
bgp: add dummy Flat methods to Extended Communities
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r--packet/bgp/bgp.go63
1 files changed, 63 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index ce92819a..7295ec1f 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -5015,6 +5015,7 @@ type ExtendedCommunityInterface interface {
String() string
GetTypes() (ExtendedCommunityAttrType, ExtendedCommunityAttrSubType)
MarshalJSON() ([]byte, error)
+ Flat() map[string]string
}
type TwoOctetAsSpecificExtended struct {
@@ -7084,6 +7085,68 @@ func (e *MessageError) Error() string {
return e.Message
}
+func (e *TwoOctetAsSpecificExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *OpaqueExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *IPv4AddressSpecificExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *FourOctetAsSpecificExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *ESILabelExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *ESImportRouteTarget) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *MacMobilityExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *TrafficRateExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *TrafficRemarkExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *RedirectIPv4AddressSpecificExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *RedirectFourOctetAsSpecificExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *UnknownExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (e *TrafficActionExtended) Flat() map[string]string {
+ return map[string]string{}
+}
+
+func (p *PathAttributeExtendedCommunities) Flat() map[string]string {
+ flat := map[string]string{}
+ for _, ec := range p.Value {
+ for k, v := range ec.Flat() {
+ flat[k] = v
+ }
+ }
+ return flat
+}
+
func (p *PathAttribute) Flat() map[string]string {
return map[string]string{}
}