summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index b97ca40c..0ff1afce 100644
--- a/table/path.go
+++ b/table/path.go
@@ -971,6 +971,7 @@ func (path *Path) MarshalJSON() ([]byte, error) {
Stale bool `json:"stale,omitempty"`
Filtered bool `json:"filtered,omitempty"`
UUID string `json:"uuid,omitempty"`
+ ID uint32 `json:"id,omitempty"`
}{
Nlri: path.GetNlri(),
PathAttrs: path.GetPathAttrs(),
@@ -982,6 +983,7 @@ func (path *Path) MarshalJSON() ([]byte, error) {
Stale: path.IsStale(),
Filtered: path.Filtered("") > POLICY_DIRECTION_NONE,
UUID: path.UUID().String(),
+ ID: path.GetNlri().PathIdentifier(),
})
}