summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-11 18:17:37 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-11 20:17:52 +0900
commitb3514d7e0a813ca1d023748d4b3365065dc43016 (patch)
tree88928a347f83c1b1e7aadc6973383737fda29f0b /config
parentfa7928b957c7c379fbe20a7340e230b3f8abd4af (diff)
config: add structure to be used in the match of the validation result of rpki
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index f3f66a09..422c9954 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -112,6 +112,15 @@ const (
BGP_SET_COMMUNITY_OPTION_TYPE_REPLACE
)
+// typedef for typedef gobgp:rpki-validation-result-type
+type RpkiValidationResultType int
+
+const (
+ RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND RpkiValidationResultType = iota
+ RPKI_VALIDATION_RESULT_TYPE_VALID
+ RPKI_VALIDATION_RESULT_TYPE_INVALID
+)
+
// typedef for typedef gobgp:bgp-origin-attr-type
type BgpOriginAttrType int
@@ -1376,6 +1385,8 @@ type BgpConditions struct {
// original -> bgp-pol:route-type
//bgp-pol:route-type's original type is enumeration
RouteType uint32
+ // original -> gobgp:rpki-validation-result
+ RpkiValidationResult RpkiValidationResultType
}
//struct for container rpol:igp-conditions