diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-11 18:17:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-11 20:17:52 +0900 |
commit | b3514d7e0a813ca1d023748d4b3365065dc43016 (patch) | |
tree | 88928a347f83c1b1e7aadc6973383737fda29f0b /tools/pyang_plugins | |
parent | fa7928b957c7c379fbe20a7340e230b3f8abd4af (diff) |
config: add structure to be used in the match of the validation result of rpki
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index c3c4d800..1c1ed740 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -191,6 +191,34 @@ module bgp-gobgp { } } + grouping gobgp-rpki-validation-result { + description "additional rpki"; + leaf rpki-validation-result { + type rpki-validation-result-type; + default NOT-FOUND; + description + "specify the validation result of RPKI based on ROA as conditions"; + } + } + + typedef rpki-validation-result-type { + type enumeration { + enum NOT-FOUND { + description "If the origin AS, prefix, maximum prefix length + does not exist in the range of ROA"; + } + enum VALID { + description "If the origin AS, prefix, maximum prefix length is + exist in the range of ROA"; + } + enum INVALID { + description "if the origin AS is different when prefix, + maximum prefix length is exist in the range of ROA"; + } + } + description + "indicate the validation result of RPKI based on ROA"; + } // augment statements augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state/bgp:messages/bgp:sent" { @@ -340,4 +368,12 @@ module bgp-gobgp { } } } + + augment "/rpol:routing-policy/rpol:policy-definitions/" + + "rpol:policy-definition/rpol:statements/rpol:statement/" + + "rpol:conditions/bgp-pol:bgp-conditions" { + description "additional rpki condition"; + uses gobgp-rpki-validation-result; + } + } |