summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-12-11 16:41:59 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-12-16 20:27:06 +0900
commitc31011c7b3467a05bc66a4f6e7a1b6b46e7f051f (patch)
treea38110bf9917f028b33c7c46d7abd4a4bdc487c0 /docs/sources
parentb2ca825f6d55fb316a01909aedab44e865d6f53d (diff)
docs: Update docs for prefix representations in Neighbor Set
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'docs/sources')
-rw-r--r--docs/sources/cli-command-syntax.md8
-rw-r--r--docs/sources/configuration.md2
-rw-r--r--docs/sources/policy.md4
3 files changed, 11 insertions, 3 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md
index feb4257f..c084be51 100644
--- a/docs/sources/cli-command-syntax.md
+++ b/docs/sources/cli-command-syntax.md
@@ -211,7 +211,7 @@ If you want to remove one element(prefix) of PrefixSet, to specify a prefix in a
#### Syntax
```shell
# add NeighborSet
-% gobgp policy neighbor add <neighbor set name> <neighbor address>
+% gobgp policy neighbor add <neighbor set name> <neighbor address/prefix>
# delete a NeighborSet
% gobgp policy neighbor del <neighbor set name>
# delete a neighbor from a NeighborSet
@@ -227,7 +227,11 @@ If you want to add the NeighborSet:
```shell
% gobgp policy neighbor add ns1 10.0.0.1
```
-A NeighborSet it is possible to have multiple address, if you want to remove the NeighborSet to specify only NeighborSet name.
+You can also specify a neighbor address range with the prefix representation:
+```shell
+% gobgp policy neighbor add ns 10.0.0.0/24
+``````
+A NeighborSet is possible to have multiple address, if you want to remove the NeighborSet to specify only NeighborSet name.
```shell
% gobgp policy neighbor del ns1
```
diff --git a/docs/sources/configuration.md b/docs/sources/configuration.md
index 0c795649..78ad4c42 100644
--- a/docs/sources/configuration.md
+++ b/docs/sources/configuration.md
@@ -168,7 +168,7 @@
masklength-range = "24..32"
[[defined-sets.neighbor-sets]]
neighbor-set-name = "ns0"
- neighbor-info-list = ["192.168.10.2"]
+ neighbor-info-list = ["192.168.10.2", "172.13.0.0/24"]
[[defined-sets.bgp-defined-sets.community-sets]]
community-set-name = "cs0"
community-list = ["100:100"]
diff --git a/docs/sources/policy.md b/docs/sources/policy.md
index c9197980..dde2c664 100644
--- a/docs/sources/policy.md
+++ b/docs/sources/policy.md
@@ -272,6 +272,10 @@ prefix-sets and neighbor-sets section are prefix match part and neighbor match p
[[defined-sets.neighbor-sets]]
neighbor-set-name = "ns1"
neighbor-info-list = ["10.0.255.1"]
+ # Prefix representations are also acceptable.
+ [[defined-sets.neighbor-sets]]
+ neighbor-set-name = "ns2"
+ neighbor-info-list = ["10.0.0.0/24"]
```
- example 2