summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-11-09 10:04:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-16 09:59:45 +0900
commitf32673bbec2541226657653af1042d0500a52d00 (patch)
treea7a603a77328fdc36ec5aa388119c424a2f72de3 /api/gobgp.proto
parent6c6cd6efad2cf0201a6bf4665e3a647cc07b6bbc (diff)
api: Activate address family using Peer.AfiSafis
Currently, to configure per AFI-SAFI settings when adding neighbor via gRPC API, it is require to specify the both Peer.Families and Peer.AfiSafis fields. If Peer.Families is omitted, settings in Peer.AfiSafis are ignored and the given address families are not activated. This patch enables to configure per AFI-SAFI settings and activate the address family with only Peer.AfiSafis (without Peer.Families). Note: For the backward compatibility, if only Peer.Families is specified, this patch creates per AFI-SAFI settings with the default settings. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index dd58e003..39dc1b52 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -623,6 +623,9 @@ message ValidateRibResponse {
}
message Peer {
+ // Note: Regarding to the consistency with OpenConfig model, a list of
+ // address family should be removed from here, and should be configured with
+ // the list of AfiSafi instead.
repeated uint32 families = 1;
ApplyPolicy apply_policy = 2;
PeerConf conf = 3;
@@ -668,7 +671,7 @@ message PeerConf {
repeated bytes remote_cap = 11;
repeated bytes local_cap = 12;
string id = 13;
- // Note: Regarding to the consistency with OpenConfig mode, list of
+ // Note: Regarding to the consistency with OpenConfig model, list of
// PrefixLimit should be removed from here, and list of PrefixLimit in
// AfiSafi should be used instead.
repeated PrefixLimit prefix_limits = 14;