diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-12 13:43:57 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-12 13:44:33 +0900 |
commit | 84f3a20caeab95e2e41e8b13914e7d4096973376 (patch) | |
tree | cd197ad0b590fec9487ca909f126b63f7dd80629 | |
parent | 6180ffb7106e3673e4da5a2d2ce1f87612462721 (diff) |
rpki: don't show validation result if rpki disabled
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | config/bgp_configs.go | 3 | ||||
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index 422c9954..309f7d65 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -116,7 +116,8 @@ const ( type RpkiValidationResultType int const ( - RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND RpkiValidationResultType = iota + RPKI_VALIDATION_RESULT_TYPE_NONE RpkiValidationResultType = iota + RPKI_VALIDATION_RESULT_TYPE_NOT_FOUND RPKI_VALIDATION_RESULT_TYPE_VALID RPKI_VALIDATION_RESULT_TYPE_INVALID ) diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 1c1ed740..6b188097 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -203,6 +203,9 @@ module bgp-gobgp { typedef rpki-validation-result-type { type enumeration { + enum NONE { + description "RPKI disabled"; + } enum NOT-FOUND { description "If the origin AS, prefix, maximum prefix length does not exist in the range of ROA"; |