summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto421
1 files changed, 131 insertions, 290 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 4f60491a..655fdf8f 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -30,92 +30,90 @@ package gobgpapi;
// Interface exported by the server.
service GobgpApi {
- rpc StartBgp(StartBgpRequest) returns (google.protobuf.Empty);
- rpc StopBgp(StopBgpRequest) returns (google.protobuf.Empty);
- rpc GetBgp(GetBgpRequest) returns (GetBgpResponse);
+ rpc StartBgp(StartBgpRequest) returns(google.protobuf.Empty);
+ rpc StopBgp(StopBgpRequest) returns(google.protobuf.Empty);
+ rpc GetBgp(GetBgpRequest) returns(GetBgpResponse);
- rpc AddPeer(AddPeerRequest) returns (google.protobuf.Empty);
- rpc DeletePeer(DeletePeerRequest) returns (google.protobuf.Empty);
- rpc ListPeer(ListPeerRequest) returns (stream ListPeerResponse);
- rpc UpdatePeer(UpdatePeerRequest) returns (UpdatePeerResponse);
- rpc ResetPeer(ResetPeerRequest) returns (google.protobuf.Empty);
- rpc ShutdownPeer(ShutdownPeerRequest) returns (google.protobuf.Empty);
- rpc EnablePeer(EnablePeerRequest) returns (google.protobuf.Empty);
- rpc DisablePeer(DisablePeerRequest) returns (google.protobuf.Empty);
- rpc MonitorPeer(MonitorPeerRequest) returns (stream MonitorPeerResponse);
+ rpc AddPeer(AddPeerRequest) returns(google.protobuf.Empty);
+ rpc DeletePeer(DeletePeerRequest) returns(google.protobuf.Empty);
+ rpc ListPeer(ListPeerRequest) returns(stream ListPeerResponse);
+ rpc UpdatePeer(UpdatePeerRequest) returns(UpdatePeerResponse);
+ rpc ResetPeer(ResetPeerRequest) returns(google.protobuf.Empty);
+ rpc ShutdownPeer(ShutdownPeerRequest) returns(google.protobuf.Empty);
+ rpc EnablePeer(EnablePeerRequest) returns(google.protobuf.Empty);
+ rpc DisablePeer(DisablePeerRequest) returns(google.protobuf.Empty);
+ rpc MonitorPeer(MonitorPeerRequest) returns(stream MonitorPeerResponse);
- rpc AddPeerGroup(AddPeerGroupRequest) returns (google.protobuf.Empty);
- rpc DeletePeerGroup(DeletePeerGroupRequest) returns (google.protobuf.Empty);
- rpc UpdatePeerGroup(UpdatePeerGroupRequest) returns (UpdatePeerGroupResponse);
+ rpc AddPeerGroup(AddPeerGroupRequest) returns(google.protobuf.Empty);
+ rpc DeletePeerGroup(DeletePeerGroupRequest) returns(google.protobuf.Empty);
+ rpc UpdatePeerGroup(UpdatePeerGroupRequest) returns(UpdatePeerGroupResponse);
- rpc AddDynamicNeighbor(AddDynamicNeighborRequest) returns (google.protobuf.Empty);
+ rpc AddDynamicNeighbor(AddDynamicNeighborRequest)
+ returns(google.protobuf.Empty);
- rpc AddPath(AddPathRequest) returns (AddPathResponse);
- rpc DeletePath(DeletePathRequest) returns (google.protobuf.Empty);
- rpc ListPath(ListPathRequest) returns (stream ListPathResponse);
- rpc AddPathStream(stream AddPathStreamRequest) returns (google.protobuf.Empty);
+ rpc AddPath(AddPathRequest) returns(AddPathResponse);
+ rpc DeletePath(DeletePathRequest) returns(google.protobuf.Empty);
+ rpc ListPath(ListPathRequest) returns(stream ListPathResponse);
+ rpc AddPathStream(stream AddPathStreamRequest) returns(google.protobuf.Empty);
- rpc GetTable(GetTableRequest) returns (GetTableResponse);
- rpc MonitorTable(MonitorTableRequest) returns (stream MonitorTableResponse);
+ rpc GetTable(GetTableRequest) returns(GetTableResponse);
+ rpc MonitorTable(MonitorTableRequest) returns(stream MonitorTableResponse);
- rpc AddVrf(AddVrfRequest) returns (google.protobuf.Empty);
- rpc DeleteVrf(DeleteVrfRequest) returns (google.protobuf.Empty);
- rpc ListVrf(ListVrfRequest) returns (stream ListVrfResponse);
+ rpc AddVrf(AddVrfRequest) returns(google.protobuf.Empty);
+ rpc DeleteVrf(DeleteVrfRequest) returns(google.protobuf.Empty);
+ rpc ListVrf(ListVrfRequest) returns(stream ListVrfResponse);
- rpc AddPolicy(AddPolicyRequest) returns (google.protobuf.Empty);
- rpc DeletePolicy(DeletePolicyRequest) returns (google.protobuf.Empty);
- rpc ListPolicy(ListPolicyRequest) returns (stream ListPolicyResponse);
- rpc SetPolicies(SetPoliciesRequest) returns (google.protobuf.Empty);
+ rpc AddPolicy(AddPolicyRequest) returns(google.protobuf.Empty);
+ rpc DeletePolicy(DeletePolicyRequest) returns(google.protobuf.Empty);
+ rpc ListPolicy(ListPolicyRequest) returns(stream ListPolicyResponse);
+ rpc SetPolicies(SetPoliciesRequest) returns(google.protobuf.Empty);
- rpc AddDefinedSet(AddDefinedSetRequest) returns (google.protobuf.Empty);
- rpc DeleteDefinedSet(DeleteDefinedSetRequest) returns (google.protobuf.Empty);
- rpc ListDefinedSet(ListDefinedSetRequest) returns (stream ListDefinedSetResponse);
+ rpc AddDefinedSet(AddDefinedSetRequest) returns(google.protobuf.Empty);
+ rpc DeleteDefinedSet(DeleteDefinedSetRequest) returns(google.protobuf.Empty);
+ rpc ListDefinedSet(ListDefinedSetRequest)
+ returns(stream ListDefinedSetResponse);
- rpc AddStatement(AddStatementRequest) returns (google.protobuf.Empty);
- rpc DeleteStatement(DeleteStatementRequest) returns (google.protobuf.Empty);
- rpc ListStatement(ListStatementRequest) returns (stream ListStatementResponse);
+ rpc AddStatement(AddStatementRequest) returns(google.protobuf.Empty);
+ rpc DeleteStatement(DeleteStatementRequest) returns(google.protobuf.Empty);
+ rpc ListStatement(ListStatementRequest) returns(stream ListStatementResponse);
- rpc AddPolicyAssignment(AddPolicyAssignmentRequest) returns (google.protobuf.Empty);
- rpc DeletePolicyAssignment(DeletePolicyAssignmentRequest) returns (google.protobuf.Empty);
- rpc ListPolicyAssignment(ListPolicyAssignmentRequest) returns (stream ListPolicyAssignmentResponse);
- rpc SetPolicyAssignment(SetPolicyAssignmentRequest) returns (google.protobuf.Empty);
+ rpc AddPolicyAssignment(AddPolicyAssignmentRequest)
+ returns(google.protobuf.Empty);
+ rpc DeletePolicyAssignment(DeletePolicyAssignmentRequest)
+ returns(google.protobuf.Empty);
+ rpc ListPolicyAssignment(ListPolicyAssignmentRequest)
+ returns(stream ListPolicyAssignmentResponse);
+ rpc SetPolicyAssignment(SetPolicyAssignmentRequest)
+ returns(google.protobuf.Empty);
- rpc AddRpki(AddRpkiRequest) returns (google.protobuf.Empty);
- rpc DeleteRpki(DeleteRpkiRequest) returns (google.protobuf.Empty);
- rpc ListRpki(ListRpkiRequest) returns (stream ListRpkiResponse);
- rpc EnableRpki(EnableRpkiRequest) returns (google.protobuf.Empty);
- rpc DisableRpki(DisableRpkiRequest) returns (google.protobuf.Empty);
- rpc ResetRpki(ResetRpkiRequest) returns (google.protobuf.Empty);
- rpc ListRpkiTable(ListRpkiTableRequest) returns (stream ListRpkiTableResponse);
+ rpc AddRpki(AddRpkiRequest) returns(google.protobuf.Empty);
+ rpc DeleteRpki(DeleteRpkiRequest) returns(google.protobuf.Empty);
+ rpc ListRpki(ListRpkiRequest) returns(stream ListRpkiResponse);
+ rpc EnableRpki(EnableRpkiRequest) returns(google.protobuf.Empty);
+ rpc DisableRpki(DisableRpkiRequest) returns(google.protobuf.Empty);
+ rpc ResetRpki(ResetRpkiRequest) returns(google.protobuf.Empty);
+ rpc ListRpkiTable(ListRpkiTableRequest) returns(stream ListRpkiTableResponse);
- rpc EnableZebra(EnableZebraRequest) returns (google.protobuf.Empty);
+ rpc EnableZebra(EnableZebraRequest) returns(google.protobuf.Empty);
- rpc EnableMrt(EnableMrtRequest) returns (google.protobuf.Empty);
- rpc DisableMrt(DisableMrtRequest) returns (google.protobuf.Empty);
+ rpc EnableMrt(EnableMrtRequest) returns(google.protobuf.Empty);
+ rpc DisableMrt(DisableMrtRequest) returns(google.protobuf.Empty);
- rpc AddBmp(AddBmpRequest) returns (google.protobuf.Empty);
- rpc DeleteBmp(DeleteBmpRequest) returns (google.protobuf.Empty);
+ rpc AddBmp(AddBmpRequest) returns(google.protobuf.Empty);
+ rpc DeleteBmp(DeleteBmpRequest) returns(google.protobuf.Empty);
- rpc SetLogLevel(SetLogLevelRequest) returns (google.protobuf.Empty);
+ rpc SetLogLevel(SetLogLevelRequest) returns(google.protobuf.Empty);
}
-message StartBgpRequest {
- Global global = 1;
-}
+message StartBgpRequest { Global global = 1; }
-message StopBgpRequest {
-}
+message StopBgpRequest {}
-message GetBgpRequest {
-}
+message GetBgpRequest {}
-message GetBgpResponse {
- Global global = 1;
-}
+message GetBgpResponse { Global global = 1; }
-message AddPeerRequest {
- Peer peer = 1;
-}
+message AddPeerRequest { Peer peer = 1; }
message DeletePeerRequest {
string address = 1;
@@ -123,13 +121,11 @@ message DeletePeerRequest {
}
message ListPeerRequest {
- string address = 1;
+ string address = 1;
bool enableAdvertised = 2;
}
-message ListPeerResponse {
- Peer peer = 1;
-}
+message ListPeerResponse { Peer peer = 1; }
message UpdatePeerRequest {
Peer peer = 1;
@@ -149,11 +145,7 @@ message ResetPeerRequest {
string address = 1;
string communication = 2;
bool soft = 3;
- enum SoftResetDirection {
- IN = 0;
- OUT = 1;
- BOTH = 2;
- }
+ enum SoftResetDirection { IN = 0; OUT = 1; BOTH = 2; }
SoftResetDirection direction = 4;
}
@@ -162,9 +154,7 @@ message ShutdownPeerRequest {
string communication = 2;
}
-message EnablePeerRequest {
- string address = 1;
-}
+message EnablePeerRequest { string address = 1; }
message DisablePeerRequest {
string address = 1;
@@ -176,30 +166,20 @@ message MonitorPeerRequest {
bool current = 2;
}
-message MonitorPeerResponse {
- Peer peer = 1;
-}
+message MonitorPeerResponse { Peer peer = 1; }
-message AddPeerGroupRequest {
- PeerGroup peer_group = 1;
-}
+message AddPeerGroupRequest { PeerGroup peer_group = 1; }
-message DeletePeerGroupRequest {
- string name = 1;
-}
+message DeletePeerGroupRequest { string name = 1; }
message UpdatePeerGroupRequest {
PeerGroup peer_group = 1;
bool do_soft_reset_in = 2;
}
-message UpdatePeerGroupResponse {
- bool needs_soft_reset_in = 1;
-}
+message UpdatePeerGroupResponse { bool needs_soft_reset_in = 1; }
-message AddDynamicNeighborRequest {
- DynamicNeighbor dynamic_neighbor = 1;
-}
+message AddDynamicNeighborRequest { DynamicNeighbor dynamic_neighbor = 1; }
message AddPathRequest {
TableType table_type = 1;
@@ -207,9 +187,7 @@ message AddPathRequest {
Path path = 3;
}
-message AddPathResponse {
- bytes uuid = 1;
-}
+message AddPathResponse { bytes uuid = 1; }
message DeletePathRequest {
TableType table_type = 1;
@@ -224,19 +202,14 @@ message ListPathRequest {
string name = 2;
Family family = 3;
repeated TableLookupPrefix prefixes = 4;
- enum SortType {
- NONE = 0;
- PREFIX = 1;
- }
+ enum SortType { NONE = 0; PREFIX = 1; }
SortType sort_type = 5;
bool enable_filtered = 6;
bool enable_nlri_binary = 7;
bool enable_attribute_binary = 8;
}
-message ListPathResponse {
- Destination destination = 1;
-}
+message ListPathResponse { Destination destination = 1; }
message AddPathStreamRequest {
TableType table_type = 1;
@@ -264,25 +237,15 @@ message MonitorTableRequest {
bool post_policy = 5;
}
-message MonitorTableResponse {
- Path path = 1;
-}
+message MonitorTableResponse { Path path = 1; }
-message AddVrfRequest {
- Vrf vrf = 1;
-}
+message AddVrfRequest { Vrf vrf = 1; }
-message DeleteVrfRequest {
- string name = 1;
-}
+message DeleteVrfRequest { string name = 1; }
-message ListVrfRequest {
- string name = 1;
-}
+message ListVrfRequest { string name = 1; }
-message ListVrfResponse {
- Vrf vrf = 1;
-}
+message ListVrfResponse { Vrf vrf = 1; }
message AddPolicyRequest {
Policy policy = 1;
@@ -299,13 +262,9 @@ message DeletePolicyRequest {
bool all = 3;
}
-message ListPolicyRequest {
- string name = 1;
-}
+message ListPolicyRequest { string name = 1; }
-message ListPolicyResponse {
- Policy policy = 1;
-}
+message ListPolicyResponse { Policy policy = 1; }
message SetPoliciesRequest {
repeated DefinedSet defined_sets = 1;
@@ -313,9 +272,7 @@ message SetPoliciesRequest {
repeated PolicyAssignment assignments = 3;
}
-message AddDefinedSetRequest {
- DefinedSet defined_set = 1;
-}
+message AddDefinedSetRequest { DefinedSet defined_set = 1; }
message DeleteDefinedSetRequest {
DefinedSet defined_set = 1;
@@ -327,30 +284,20 @@ message ListDefinedSetRequest {
string name = 2;
}
-message ListDefinedSetResponse {
- DefinedSet defined_set = 1;
-}
+message ListDefinedSetResponse { DefinedSet defined_set = 1; }
-message AddStatementRequest {
- Statement statement = 1;
-}
+message AddStatementRequest { Statement statement = 1; }
message DeleteStatementRequest {
Statement statement = 1;
bool all = 2;
}
-message ListStatementRequest {
- string name = 1;
-}
+message ListStatementRequest { string name = 1; }
-message ListStatementResponse {
- Statement statement = 1;
-}
+message ListStatementResponse { Statement statement = 1; }
-message AddPolicyAssignmentRequest {
- PolicyAssignment assignment = 1;
-}
+message AddPolicyAssignmentRequest { PolicyAssignment assignment = 1; }
message DeletePolicyAssignmentRequest {
PolicyAssignment assignment = 1;
@@ -362,13 +309,9 @@ message ListPolicyAssignmentRequest {
PolicyDirection direction = 2;
}
-message ListPolicyAssignmentResponse {
- PolicyAssignment assignment = 1;
-}
+message ListPolicyAssignmentResponse { PolicyAssignment assignment = 1; }
-message SetPolicyAssignmentRequest {
- PolicyAssignment assignment = 1;
-}
+message SetPolicyAssignmentRequest { PolicyAssignment assignment = 1; }
message AddRpkiRequest {
string address = 1;
@@ -381,13 +324,9 @@ message DeleteRpkiRequest {
uint32 port = 2;
}
-message ListRpkiRequest {
- Family family = 1;
-}
+message ListRpkiRequest { Family family = 1; }
-message ListRpkiResponse {
- Rpki server = 1;
-}
+message ListRpkiResponse { Rpki server = 1; }
message EnableRpkiRequest {
string address = 1;
@@ -405,13 +344,9 @@ message ResetRpkiRequest {
bool soft = 3;
}
-message ListRpkiTableRequest {
- Family family = 1;
-}
+message ListRpkiTableRequest { Family family = 1; }
-message ListRpkiTableResponse {
- Roa roa = 1;
-}
+message ListRpkiTableResponse { Roa roa = 1; }
message EnableZebraRequest {
string url = 1;
@@ -430,19 +365,12 @@ message EnableMrtRequest {
uint64 rotation_interval = 4;
}
-message DisableMrtRequest {
-}
+message DisableMrtRequest {}
message AddBmpRequest {
string address = 1;
uint32 port = 2;
- enum MonitoringPolicy {
- PRE = 0;
- POST = 1;
- BOTH = 2;
- LOCAL = 3;
- ALL = 4;
- }
+ enum MonitoringPolicy { PRE = 0; POST = 1; BOTH = 2; LOCAL = 3; ALL = 4; }
MonitoringPolicy policy = 3;
int32 StatisticsTimeout = 4;
string SysName = 5;
@@ -456,23 +384,17 @@ message DeleteBmpRequest {
message Family {
enum Afi {
- AFI_UNKNOWN = 0;
- AFI_IP = 1;
- AFI_IP6 = 2;
- AFI_L2VPN = 25;
- AFI_LS = 16388;
+ AFI_UNKNOWN = 0; AFI_IP = 1; AFI_IP6 = 2; AFI_L2VPN = 25; AFI_LS = 16388;
AFI_OPAQUE = 16397;
}
enum Safi {
- SAFI_UNKNOWN = 0;
- SAFI_UNICAST = 1;
- SAFI_MULTICAST = 2;
- SAFI_MPLS_LABEL = 4;
+ SAFI_UNKNOWN = 0; SAFI_UNICAST = 1; SAFI_MULTICAST = 2; SAFI_MPLS_LABEL = 4;
SAFI_ENCAPSULATION = 7;
SAFI_VPLS = 65;
SAFI_EVPN = 70;
SAFI_LS = 71;
+ SAFI_SR_POLICY = 73;
SAFI_MPLS_VPN = 128;
SAFI_MPLS_VPN_MULTICAST = 129;
SAFI_ROUTE_TARGET_CONSTRAINTS = 132;
@@ -485,27 +407,14 @@ message Family {
Safi safi = 2;
}
-enum TableType {
- GLOBAL = 0;
- LOCAL = 1;
- ADJ_IN = 2;
- ADJ_OUT = 3;
- VRF = 4;
-}
+enum TableType { GLOBAL = 0; LOCAL = 1; ADJ_IN = 2; ADJ_OUT = 3; VRF = 4; }
message Validation {
enum State {
- STATE_NONE = 0;
- STATE_NOT_FOUND = 1;
- STATE_VALID = 2;
- STATE_INVALID = 3;
+ STATE_NONE = 0; STATE_NOT_FOUND = 1; STATE_VALID = 2; STATE_INVALID = 3;
}
- enum Reason {
- REASOT_NONE = 0;
- REASON_AS = 1;
- REASON_LENGTH = 2;
- }
+ enum Reason { REASOT_NONE = 0; REASON_AS = 1; REASON_LENGTH = 2; }
State state = 1;
Reason reason = 2;
@@ -531,6 +440,7 @@ message Path {
// - VPNFlowSpecNLRI
// - OpaqueNLRI
// - LsAddrPrefix
+ // - SRPolicyNLRI
google.protobuf.Any nlri = 1;
// Each attribute must be one of *Attribute defined in
// "api/attribute.proto".
@@ -562,9 +472,7 @@ message Destination {
// API representation of table.LookupOption
enum TableLookupOption {
- LOOKUP_EXACT = 0;
- LOOKUP_LONGER = 1;
- LOOKUP_SHORTER = 2;
+ LOOKUP_EXACT = 0; LOOKUP_LONGER = 1; LOOKUP_SHORTER = 2;
}
// API representation of table.LookupPrefix
@@ -624,11 +532,7 @@ message PeerConf {
uint32 peer_as = 5;
string peer_group = 6;
uint32 peer_type = 7;
- enum RemovePrivateAs {
- NONE = 0;
- ALL = 1;
- REPLACE = 2;
- }
+ enum RemovePrivateAs { NONE = 0; ALL = 1; REPLACE = 2; }
RemovePrivateAs remove_private_as = 8;
bool route_flap_damping = 9;
uint32 send_community = 10;
@@ -646,11 +550,7 @@ message PeerGroupConf {
uint32 peer_as = 4;
string peer_group_name = 5;
uint32 peer_type = 6;
- enum RemovePrivateAs {
- NONE = 0;
- ALL = 1;
- REPLACE = 2;
- }
+ enum RemovePrivateAs { NONE = 0; ALL = 1; REPLACE = 2; }
RemovePrivateAs remove_private_as = 7;
bool route_flap_damping = 8;
uint32 send_community = 9;
@@ -663,11 +563,7 @@ message PeerGroupState {
uint32 peer_as = 4;
string peer_group_name = 5;
uint32 peer_type = 6;
- enum RemovePrivateAs {
- NONE = 0;
- ALL = 1;
- REPLACE = 2;
- }
+ enum RemovePrivateAs { NONE = 0; ALL = 1; REPLACE = 2; }
RemovePrivateAs remove_private_as = 7;
bool route_flap_damping = 8;
uint32 send_community = 9;
@@ -699,19 +595,13 @@ message PeerState {
bool route_flap_damping = 11;
uint32 send_community = 12;
enum SessionState {
- UNKNOWN = 0;
- IDLE = 1;
- CONNECT = 2;
- ACTIVE = 3;
- OPENSENT = 4;
+ UNKNOWN = 0; IDLE = 1; CONNECT = 2; ACTIVE = 3; OPENSENT = 4;
OPENCONFIRM = 5;
ESTABLISHED = 6;
}
SessionState session_state = 13;
enum AdminState {
- UP = 0;
- DOWN = 1;
- PFX_CT = 2; // prefix counter over limit
+ UP = 0; DOWN = 1; PFX_CT = 2; // prefix counter over limit
}
AdminState admin_state = 15;
uint32 out_q = 16;
@@ -746,11 +636,11 @@ message Queues {
}
message Timers {
- TimersConfig config =1;
+ TimersConfig config = 1;
TimersState state = 2;
}
-message TimersConfig{
+message TimersConfig {
uint64 connect_retry = 1;
uint64 hold_time = 2;
uint64 keepalive_interval = 3;
@@ -758,7 +648,7 @@ message TimersConfig{
uint64 idle_hold_time_after_reset = 5;
}
-message TimersState{
+message TimersState {
uint64 connect_retry = 1;
uint64 hold_time = 2;
uint64 keepalive_interval = 3;
@@ -798,9 +688,7 @@ message GracefulRestart {
string mode = 11;
}
-message MpGracefulRestartConfig {
- bool enabled = 1;
-}
+message MpGracefulRestartConfig { bool enabled = 1; }
message MpGracefulRestartState {
bool enabled = 1;
@@ -852,13 +740,9 @@ message RouteSelectionOptions {
RouteSelectionOptionsState state = 2;
}
-message UseMultiplePathsConfig {
- bool enabled = 1;
-}
+message UseMultiplePathsConfig { bool enabled = 1; }
-message UseMultiplePathsState {
- bool enabled = 1;
-}
+message UseMultiplePathsState { bool enabled = 1; }
message EbgpConfig {
bool allow_multiple_as = 1;
@@ -875,13 +759,9 @@ message Ebgp {
EbgpState state = 2;
}
-message IbgpConfig {
- uint32 maximum_paths = 1;
-}
+message IbgpConfig { uint32 maximum_paths = 1; }
-message IbgpState {
- uint32 maximum_paths = 1;
-}
+message IbgpState { uint32 maximum_paths = 1; }
message Ibgp {
IbgpConfig config = 1;
@@ -895,13 +775,9 @@ message UseMultiplePaths {
Ibgp ibgp = 4;
}
-message RouteTargetMembershipConfig {
- uint32 deferral_time = 1;
-}
+message RouteTargetMembershipConfig { uint32 deferral_time = 1; }
-message RouteTargetMembershipState {
- uint32 deferral_time = 1;
-}
+message RouteTargetMembershipState { uint32 deferral_time = 1; }
message RouteTargetMembership {
RouteTargetMembershipConfig config = 1;
@@ -967,17 +843,13 @@ message AddPaths {
}
message Prefix {
- string ip_prefix = 1;
+ string ip_prefix = 1;
uint32 mask_length_min = 2;
uint32 mask_length_max = 3;
}
enum DefinedType {
- PREFIX = 0;
- NEIGHBOR = 1;
- TAG = 2;
- AS_PATH = 3;
- COMMUNITY = 4;
+ PREFIX = 0; NEIGHBOR = 1; TAG = 2; AS_PATH = 3; COMMUNITY = 4;
EXT_COMMUNITY = 5;
LARGE_COMMUNITY = 6;
NEXT_HOP = 7;
@@ -990,22 +862,14 @@ message DefinedSet {
repeated Prefix prefixes = 4;
}
-enum MatchType {
- ANY = 0;
- ALL = 1;
- INVERT = 2;
-}
+enum MatchType { ANY = 0; ALL = 1; INVERT = 2; }
message MatchSet {
MatchType match_type = 1;
string name = 2;
}
-enum AsPathLengthType {
- EQ = 0;
- GE = 1;
- LE = 2;
-}
+enum AsPathLengthType { EQ = 0; GE = 1; LE = 2; }
message AsPathLength {
AsPathLengthType length_type = 1;
@@ -1021,9 +885,7 @@ message Conditions {
MatchSet ext_community_set = 6;
int32 rpki_result = 7;
enum RouteType {
- ROUTE_TYPE_NONE = 0;
- ROUTE_TYPE_INTERNAL = 1;
- ROUTE_TYPE_EXTERNAL = 2;
+ ROUTE_TYPE_NONE = 0; ROUTE_TYPE_INTERNAL = 1; ROUTE_TYPE_EXTERNAL = 2;
ROUTE_TYPE_LOCAL = 3;
}
RouteType route_type = 8;
@@ -1032,16 +894,10 @@ message Conditions {
repeated Family afi_safi_in = 11;
}
-enum RouteAction {
- NONE = 0;
- ACCEPT = 1;
- REJECT = 2;
-}
+enum RouteAction { NONE = 0; ACCEPT = 1; REJECT = 2; }
enum CommunityActionType {
- COMMUNITY_ADD = 0;
- COMMUNITY_REMOVE = 1;
- COMMUNITY_REPLACE = 2;
+ COMMUNITY_ADD = 0; COMMUNITY_REMOVE = 1; COMMUNITY_REPLACE = 2;
}
message CommunityAction {
@@ -1049,10 +905,7 @@ message CommunityAction {
repeated string communities = 2;
}
-enum MedActionType {
- MED_MOD = 0;
- MED_REPLACE = 1;
-}
+enum MedActionType { MED_MOD = 0; MED_REPLACE = 1; }
message MedAction {
MedActionType action_type = 1;
@@ -1070,9 +923,7 @@ message NexthopAction {
bool self = 2;
}
-message LocalPrefAction {
- uint32 value = 1;
-}
+message LocalPrefAction { uint32 value = 1; }
message Actions {
RouteAction route_action = 1;
@@ -1096,11 +947,7 @@ message Policy {
repeated Statement statements = 2;
}
-enum PolicyDirection {
- UNKNOWN = 0;
- IMPORT = 1;
- EXPORT = 2;
-}
+enum PolicyDirection { UNKNOWN = 0; IMPORT = 1; EXPORT = 2; }
message PolicyAssignment {
string name = 1;
@@ -1175,7 +1022,7 @@ message RPKIConf {
message RPKIState {
google.protobuf.Timestamp uptime = 1;
google.protobuf.Timestamp downtime = 2;
- bool up = 3;
+ bool up = 3;
uint32 record_ipv4 = 4;
uint32 record_ipv6 = 5;
uint32 prefix_ipv4 = 6;
@@ -1199,13 +1046,7 @@ message Rpki {
message SetLogLevelRequest {
enum Level {
- PANIC = 0;
- FATAL = 1;
- ERROR = 2;
- WARN = 3;
- INFO = 4;
- DEBUG = 5;
- TRACE = 6;
+ PANIC = 0; FATAL = 1; ERROR = 2; WARN = 3; INFO = 4; DEBUG = 5; TRACE = 6;
}
Level level = 1;
}