summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-07-18 14:17:08 +0900
committerSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-07-19 10:59:54 +0900
commitbe708d0b8d69ea9de3d904d2f6aaebcaabbdb55e (patch)
tree7d8eb0eaf86c8354d56742852878f1dc3f97f746 /docs
parentc7ff8580f7cb0834680dc6a48a322c5545a22bfd (diff)
doc: Add description for RPKI detailed information
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/sources/cli-command-syntax.md2
-rw-r--r--docs/sources/rpki.md21
2 files changed, 23 insertions, 0 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md
index 913eface..b06e9120 100644
--- a/docs/sources/cli-command-syntax.md
+++ b/docs/sources/cli-command-syntax.md
@@ -129,6 +129,8 @@ The following options can be specified in the global subcommand:
% gobgp neighbor <neighbor address> [local|adj-in|adj-out] [<prefix>|<host>] [longer-prefixes|shorter-prefixes] [-a <address family>]
# show table summary
% gobgp neighbor <neighbor address> [local|adj-in|adj-out] summary [-a <address family>]
+# show RPKI detailed information in adj-in table
+% gobgp neighbor <neighbor address> adj-in <prefix> validation
```
#### - example
diff --git a/docs/sources/rpki.md b/docs/sources/rpki.md
index 9623398f..c2037a98 100644
--- a/docs/sources/rpki.md
+++ b/docs/sources/rpki.md
@@ -175,6 +175,27 @@ $ gobgp neighbor 10.0.255.2 local
N*> 192.168.1.0/24 10.0.255.1 65001 00:00:21 [{Origin: i}]
```
+
+### Detailed Information about validation
+You can get the detailed information about announced routes.
+```bash
+$ gobgp neighbor 10.0.255.1 adj-in 2.1.0.0/16 validation
+Target Prefix: 2.1.0.0/16, AS: 65001
+ This route is invalid reason: as
+ No VRP ASN matches the route origin ASN.
+
+ Matched VRPs:
+ No Entry
+ Unmatched AS VRPs:
+ Network AS MaxLen
+ 2.0.0.0/12 3215 16
+ 2.1.0.0/16 3215 16
+ Unmatched Length VRPs:
+ No Entry
+```
+From this, we can notice that 2.1.0.0/16 (Origin AS: 65001) is invalid due to its origin AS,
+the origin AS should be 3215.
+
## <a name="section3"> Force Re-validation
Validation is executed every time bgp update messages arrive. The