summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-12-11 16:19:50 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-12-16 20:27:06 +0900
commitb2ca825f6d55fb316a01909aedab44e865d6f53d (patch)
tree516e66df230ba6aca3a6d4745b7add2c6ea79fc0 /config
parent694d364d09ae9d272a7cacefc23b7fcefcf05617 (diff)
table/policy: Support prefix representation in NeighborSet
Currently, "neighbor-set" supports only IP address representation and IP prefix representation(such as "192.168.0.0/24") is not supported. This commit enables to accept the prefix representation for "neighbor-set" to allow neighbors to be specified as range. Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 1c87bb88..1b219172 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -5986,7 +5986,7 @@ type NeighborSet struct {
NeighborSetName string `mapstructure:"neighbor-set-name" json:"neighbor-set-name,omitempty"`
// original -> gobgp:neighbor-info
// original type is list of inet:ip-address
- // neighbor ip address.
+ // neighbor ip address or prefix.
NeighborInfoList []string `mapstructure:"neighbor-info-list" json:"neighbor-info-list,omitempty"`
}