diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-24 08:41:18 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-24 08:46:24 +0000 |
commit | f7401e177a2a60d6537339e6ee11576d23f32c41 (patch) | |
tree | a4821309f282f7fd9d9970758c2eaffaf602f810 | |
parent | 88cf77b5ea70cf67ff73f4106f8a40cff4db98c4 (diff) |
gobgp: fix typo
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | docs/sources/getting-started.md | 6 | ||||
-rw-r--r-- | gobgp/main.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/sources/getting-started.md b/docs/sources/getting-started.md index f105b21f..45ceceb1 100644 --- a/docs/sources/getting-started.md +++ b/docs/sources/getting-started.md @@ -96,11 +96,11 @@ Check out the global table. Network Next Hop AS_PATH Age Attrs *> 10.3.0.0/16 10.0.255.1 [65001] 00:05:41 [{Origin: 0} {Med: 0}] *> 10.3.0.0/24 10.0.255.1 [65001] 00:05:41 [{Origin: 0} {Med: 0}] -* 10.3.0.0/24 10.0.255.2 [65002] 00:05:41 [{Origin: 0} {Med: 111} {Cummunity: [65001:65002 NO_EXPORT]}] +* 10.3.0.0/24 10.0.255.2 [65002] 00:05:41 [{Origin: 0} {Med: 111} {Community: [65001:65002 NO_EXPORT]}] *> 10.3.0.0/32 10.0.255.1 [65001] 00:05:41 [{Origin: 0} {Med: 0}] *> 10.3.0.1/32 10.0.255.1 [65001] 00:05:41 [{Origin: 0} {Med: 0}] *> 10.33.0.0/16 10.0.255.1 [65001] 00:05:41 [{Origin: 0} {Med: 0}] -*> 192.168.2.0/24 10.0.255.2 [65002] 00:05:41 [{Origin: 0} {Med: 111} {Cummunity: [65001:65002 NO_EXPORT]}] +*> 192.168.2.0/24 10.0.255.2 [65002] 00:05:41 [{Origin: 0} {Med: 111} {Community: [65001:65002 NO_EXPORT]}] ``` You also can look at adjacent rib-in and rib-out: @@ -115,5 +115,5 @@ $ gobgp neighbor 10.0.255.1 adj-in 10.33.0.0/16 10.0.255.1 [65001] 00:06:55 [{Origin: 0} {Med: 0}] $ gobgp neighbor 10.0.255.1 adj-out Network Next Hop AS_PATH Attrs - 192.168.2.0/24 10.0.255.254 [64512 65002] [{Origin: 0} {Cummunity: [65001:65002 NO_EXPORT]}] + 192.168.2.0/24 10.0.255.254 [64512 65002] [{Origin: 0} {Community: [65001:65002 NO_EXPORT]}] ``` diff --git a/gobgp/main.go b/gobgp/main.go index f5e747fb..4112de7a 100644 --- a/gobgp/main.go +++ b/gobgp/main.go @@ -739,7 +739,7 @@ func showRoute(pathList []*api.Path, showAge bool, showBest bool) { l = append(l, fmt.Sprintf("%d:%d", (0xffff0000&v)>>16, 0xffff&v)) } } - s = append(s, fmt.Sprintf("{Cummunity: %v}", l)) + s = append(s, fmt.Sprintf("{Community: %v}", l)) case api.BGP_ATTR_TYPE_ORIGINATOR_ID: s = append(s, fmt.Sprintf("{Originator: %v|", a.Originator)) case api.BGP_ATTR_TYPE_CLUSTER_LIST: |