From ca2e7730bd8838b1f633e1f1808e0edce9269162 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Tue, 14 Jun 2016 09:19:03 +0000 Subject: collector: Dump some path attributes and some ECs --- server/collector.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/collector.go b/server/collector.go index c1930d09..e9039fde 100644 --- a/server/collector.go +++ b/server/collector.go @@ -118,9 +118,13 @@ func path2data(path *table.Path) (map[string]interface{}, map[string]string) { "Timestamp": path.GetTimestamp().String(), } - flat := path.GetNlri().Flat() - for key, value := range flat { - tags[key] = value + if err := bgp.FlatUpdate(tags, path.GetNlri().Flat()); err != nil { + log.Error(err) + } + for _, p := range path.GetPathAttrs() { + if err := bgp.FlatUpdate(tags, p.Flat()); err != nil { + log.Error(err) + } } return fields, tags } -- cgit v1.2.3