summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-06-23 16:16:02 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-26 14:21:57 +0900
commit0111219af1270f69668a62f93a385f96df51b79f (patch)
treea341cd1289811367fd42a4a2b6f2709ee8920c5a /api/gobgp.proto
parentf2576098049dbc3b21596eb2d603f7378e939d60 (diff)
api: Enable to compose AfiSafi message structure
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto95
1 files changed, 87 insertions, 8 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 58bc89e5..ded9487d 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -703,16 +703,35 @@ message GracefulRestart {
bool longlived_enabled = 6;
}
-message MpGracefulRestart {
+message MpGracefulRestartConfig {
bool enabled = 1;
}
+message MpGracefulRestartState {
+ bool enabled = 1;
+ bool received = 2;
+ bool advertised = 3;
+ bool end_of_rib_received = 4;
+ bool end_of_rib_sent = 5;
+}
+message MpGracefulRestart {
+ MpGracefulRestartConfig config = 1;
+ MpGracefulRestartState state = 2;
+}
+
message AfiSafiConfig {
uint32 family = 1;
bool enabled = 2;
}
-message RouteSelectionOptions {
+message AfiSafiState {
+ uint32 family = 1;
+ bool enabled = 2;
+ uint32 total_paths = 3;
+ uint32 total_prefixes = 4;
+}
+
+message RouteSelectionOptionsConfig {
bool always_compare_med = 1;
bool ignore_as_path_length = 2;
bool external_compare_router_id = 3;
@@ -721,34 +740,94 @@ message RouteSelectionOptions {
bool ignore_next_hop_igp_metric = 6;
}
+message RouteSelectionOptionsState {
+ bool always_compare_med = 1;
+ bool ignore_as_path_length = 2;
+ bool external_compare_router_id = 3;
+ bool advertise_inactive_routes = 4;
+ bool enable_aigp = 5;
+ bool ignore_next_hop_igp_metric = 6;
+}
+
+message RouteSelectionOptions {
+ RouteSelectionOptionsConfig config = 1;
+ RouteSelectionOptionsState state = 2;
+}
+
message UseMultiplePathsConfig {
bool enabled = 1;
}
-message Ebgp {
+message UseMultiplePathsState {
+ bool enabled = 1;
+}
+
+message EbgpConfig {
bool allow_multiple_as = 1;
uint32 maximum_paths = 2;
}
-message Ibgp {
+message EbgpState {
+ bool allow_multiple_as = 1;
+ uint32 maximum_paths = 2;
+}
+
+message Ebgp {
+ EbgpConfig config = 1;
+ EbgpState state = 2;
+}
+
+message IbgpConfig {
uint32 maximum_paths = 1;
}
+message IbgpState {
+ uint32 maximum_paths = 1;
+}
+
+message Ibgp {
+ IbgpConfig config = 1;
+ IbgpState state = 2;
+}
+
message UseMultiplePaths {
UseMultiplePathsConfig config = 1;
- Ebgp ebgp = 2;
- Ibgp ibgp = 3;
+ UseMultiplePathsState state = 2;
+ Ebgp ebgp = 3;
+ Ibgp ibgp = 4;
}
-message RouteTargetMembership {
+message RouteTargetMembershipConfig {
uint32 deferral_time = 1;
}
-message LongLivedGracefulRestart {
+message RouteTargetMembershipState {
+ uint32 deferral_time = 1;
+}
+
+message RouteTargetMembership {
+ RouteTargetMembershipConfig config = 1;
+ RouteTargetMembershipState state = 2;
+}
+
+message LongLivedGracefulRestartConfig {
bool enabled = 1;
uint32 restart_time = 2;
}
+message LongLivedGracefulRestartState {
+ bool enabled = 1;
+ bool received = 2;
+ bool advertised = 3;
+ uint32 peer_restart_time = 4;
+ bool peer_restart_timer_expired = 5;
+}
+
+message LongLivedGracefulRestart {
+ LongLivedGracefulRestartConfig config = 1;
+ LongLivedGracefulRestartState state = 2;
+}
+
message AfiSafi {
MpGracefulRestart mp_graceful_restart = 1;
AfiSafiConfig config = 2;