Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite the gRPC API to ditch google.protobuf.Any in favor of protobuf native oneof #2880

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10,225 changes: 3,334 additions & 6,891 deletions api/attribute.pb.go

Large diffs are not rendered by default.

659 changes: 111 additions & 548 deletions api/attribute.proto

Large diffs are not rendered by default.

718 changes: 528 additions & 190 deletions api/capability.pb.go

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion api/capability.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,25 @@ syntax = "proto3";
package apipb;
option go_package = "github.com/osrg/gobgp/v3/api;apipb";

import "gobgp.proto";
import "common.proto";

message Capability {
oneof cap {
UnknownCapability unknown = 1;
MultiProtocolCapability multi_protocol = 2;
RouteRefreshCapability route_refresh = 3;
CarryingLabelInfoCapability carrying_label_info = 4;
ExtendedNexthopCapability extended_nexthop = 5;
GracefulRestartCapability graceful_restart = 6;
FourOctetASNCapability four_octet_asn = 7;
AddPathCapability add_path = 8;
EnhancedRouteRefreshCapability enhanced_route_refresh = 9;
LongLivedGracefulRestartCapability long_lived_graceful_restart = 10;
RouteRefreshCiscoCapability route_refresh_cisco = 11;
FqdnCapability fqdn = 12;
SoftwareVersionCapability software_version = 13;
}
}

message MultiProtocolCapability {
apipb.Family family = 1;
Expand Down
Loading
Loading