summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-12 10:12:12 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-14 02:15:47 +0000
commit1e22e529c92fe7b2e1576ceea96d827f16a76654 (patch)
tree587c27db5caad26185ff6e0c0aff126b21fe1b2d /api/gobgp.proto
parentc4ced97e76f12d5c37721c107e61147edb4254d7 (diff)
config/api: create admin-state type
align with session-state Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto7
1 files changed, 6 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index e257c6d6..c212df92 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -598,7 +598,12 @@ message PeerState {
uint32 session_state = 13;
repeated string supported_capabilities = 14;
string bgp_state = 15;
- string admin_state = 16;
+ enum AdminState {
+ UP = 0;
+ DOWN = 1;
+ PFX_CT = 2; // prefix counter over limit
+ }
+ AdminState admin_state = 16;
uint32 received = 17;
uint32 accepted = 18;
uint32 advertised = 19;