diff options
Diffstat (limited to 'server/collector.go')
-rw-r--r-- | server/collector.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/collector.go b/server/collector.go index e9039fde..72f820c0 100644 --- a/server/collector.go +++ b/server/collector.go @@ -92,7 +92,10 @@ func (c *Collector) writePeer(msg *watcherEventStateChangedMsg) error { func path2data(path *table.Path) (map[string]interface{}, map[string]string) { fields := map[string]interface{}{ - "ASPath": path.GetAsPath().String(), + "RouterID": path.GetSource().ID, + } + if asPath := path.GetAsPath(); asPath != nil { + fields["ASPath"] = asPath.String() } if origin, err := path.GetOrigin(); err == nil { typ := "-" |