diff options
-rw-r--r-- | docs/sources/cli-command-syntax.md | 8 | ||||
-rw-r--r-- | docs/sources/configuration.md | 2 | ||||
-rw-r--r-- | docs/sources/policy.md | 4 |
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 |