Skip to content

Commit

Permalink
docs: Update docs for prefix representations in Neighbor Set
Browse files Browse the repository at this point in the history
Signed-off-by: Satoshi Fujimoto <[email protected]>
  • Loading branch information
fujimoto-s authored and fujita committed Dec 16, 2017
1 parent b2ca825 commit c31011c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/sources/cli-command-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions docs/sources/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c31011c

Please sign in to comment.