diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-17 07:46:35 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-17 07:46:35 -0800 |
commit | 7a5cf6a2b9c0b9f2f2227b35dce2855b157fda91 (patch) | |
tree | 1939476b588ce1d3b79715a7de044e2f0170c849 /table/destination.go | |
parent | f4c409941848b72ba5b162405dc5022d76fcc59f (diff) |
rpki: add rpki validate API
$ gobgp rpki validate
validates all the paths in the table with the current ROAs.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go index b7a79788..afac8e06 100644 --- a/table/destination.go +++ b/table/destination.go @@ -181,6 +181,10 @@ func (dd *Destination) setNlri(nlri bgp.AddrPrefixInterface) { dd.nlri = nlri } +func (dd *Destination) GetAllKnownPathList() []*Path { + return dd.knownPathList +} + func (dd *Destination) GetKnownPathList(id string) []*Path { list := make([]*Path, 0, len(dd.knownPathList)) for _, p := range dd.knownPathList { |