summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-26 14:36:37 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-26 14:36:37 +0900
commite25e9373dd4dc95b5d224a33ae65cc4806d06e48 (patch)
tree7440e6fc52580280a34c9f14abd52a44ff2a7b27 /internal/pkg/table
parent5856fe44297cb4248356671bc7a7f9c3bf17b699 (diff)
table: remove unused validation in originInfo struct
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table')
-rw-r--r--internal/pkg/table/path.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/pkg/table/path.go b/internal/pkg/table/path.go
index da81fecc..743f1c1f 100644
--- a/internal/pkg/table/path.go
+++ b/internal/pkg/table/path.go
@@ -89,7 +89,6 @@ type originInfo struct {
nlri bgp.AddrPrefixInterface
source *PeerInfo
timestamp int64
- validation *Validation
noImplicitWithdraw bool
isFromExternal bool
eor bool
@@ -357,22 +356,6 @@ func (path *Path) NoImplicitWithdraw() bool {
return path.OriginInfo().noImplicitWithdraw
}
-func (path *Path) Validation() *Validation {
- return path.OriginInfo().validation
-}
-
-func (path *Path) ValidationStatus() config.RpkiValidationResultType {
- if v := path.OriginInfo().validation; v != nil {
- return v.Status
- } else {
- return config.RPKI_VALIDATION_RESULT_TYPE_NONE
- }
-}
-
-func (path *Path) SetValidation(v *Validation) {
- path.OriginInfo().validation = v
-}
-
func (path *Path) IsFromExternal() bool {
return path.OriginInfo().isFromExternal
}
@@ -1024,7 +1007,6 @@ func (path *Path) MarshalJSON() ([]byte, error) {
PathAttrs: path.GetPathAttrs(),
Age: path.GetTimestamp().Unix(),
Withdrawal: path.IsWithdraw,
- Validation: string(path.ValidationStatus()),
SourceID: path.GetSource().ID,
NeighborIP: path.GetSource().Address,
Stale: path.IsStale(),
@@ -1152,7 +1134,6 @@ func (p *Path) ToGlobal(vrf *Vrf) *Path {
path.SetExtCommunities(vrf.ExportRt, false)
path.delPathAttr(bgp.BGP_ATTR_TYPE_NEXT_HOP)
path.setPathAttr(bgp.NewPathAttributeMpReachNLRI(nh.String(), []bgp.AddrPrefixInterface{nlri}))
- path.IsNexthopInvalid = p.IsNexthopInvalid
return path
}