summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/cli-command-syntax.md
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/cli-command-syntax.md
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/cli-command-syntax.md')
-rw-r--r--docs/sources/cli-command-syntax.md8
1 files changed, 6 insertions, 2 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
```