diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-01-22 00:37:58 -0500 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-01-22 00:37:58 -0500 |
commit | bb42a6832f14edb65c06256bfb4d7029faf9f3bb (patch) | |
tree | 99f275faff348a056d6af1e71c1a442d7cf8b279 /api/util.go | |
parent | 99ed1e73d7fe2245c36e4adb5f5cd924c4d55516 (diff) |
api: add a UUID field to Path structure
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/util.go')
-rw-r--r-- | api/util.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/util.go b/api/util.go index 373bad47..ec17d54a 100644 --- a/api/util.go +++ b/api/util.go @@ -116,6 +116,7 @@ func (p *Path) ToNativePath(option ...ToNativeOption) (*table.Path, error) { path := table.NewPath(info, nlri, p.IsWithdraw, pattr, t, false) path.SetValidation(config.IntToRpkiValidationResultTypeMap[int(p.Validation)]) path.MarkStale(p.Stale) + path.SetUUID(p.Uuid) if p.Filtered { path.Filter("", table.POLICY_DIRECTION_IN) } |