summaryrefslogtreecommitdiffhomepage
path: root/api/attribute.proto
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-26 22:04:12 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-28 15:36:50 +0900
commit97ad6b32ee61fd439c2edefbc371f748cdf82046 (patch)
tree7e06da9270ed2fc826939f462662a75b9e7b1714 /api/attribute.proto
parent23ac6ebb861a725273c6b663dc484becef55087c (diff)
api: change Family
fixes #1812 Avoid the cast and use strightforward data strcuture; two variables for afi and safi instead of squashing two into one variable. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/attribute.proto')
-rw-r--r--api/attribute.proto5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/attribute.proto b/api/attribute.proto
index dea22b4f..c07ad05c 100644
--- a/api/attribute.proto
+++ b/api/attribute.proto
@@ -22,6 +22,7 @@
syntax = "proto3";
import "google/protobuf/any.proto";
+import "gobgp.proto";
package gobgpapi;
@@ -267,7 +268,7 @@ message OpaqueNLRI {
}
message MpReachNLRIAttribute {
- uint32 family = 1;
+ gobgpapi.Family family = 1;
repeated string next_hops = 2;
// Each NLRI must be one of:
// - IPAddressPrefix
@@ -287,7 +288,7 @@ message MpReachNLRIAttribute {
}
message MpUnreachNLRIAttribute {
- uint32 family = 1;
+ gobgpapi.Family family = 1;
// The same as NLRI field of MpReachNLRIAttribute
repeated google.protobuf.Any nlris = 3;
}