summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-02-15 17:46:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-16 10:13:40 +0900
commit560fa6cbd5c6ddb8fcd5c262b720459c064a9b23 (patch)
tree94b407108e89687ef010504938edd14d104c29f3 /server/server.go
parent161ea3b25709820991b1b1e17e621eb9a2082865 (diff)
peer: support enable/disable
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index 14a1ac5f..9e03a270 100644
--- a/server/server.go
+++ b/server/server.go
@@ -241,7 +241,11 @@ func (server *BgpServer) handleRest(restReq *api.RestRequest) {
}
restReq.ResponseCh <- result
close(restReq.ResponseCh)
- case api.REQ_LOCAL_RIB, api.REQ_NEIGHBOR_SHUTDOWN, api.REQ_NEIGHBOR_RESET, api.REQ_NEIGHBOR_SOFT_RESET_IN, api.REQ_NEIGHBOR_SOFT_RESET_OUT, api.REQ_ADJ_RIB_IN, api.REQ_ADJ_RIB_OUT:
+ case api.REQ_LOCAL_RIB, api.REQ_NEIGHBOR_SHUTDOWN, api.REQ_NEIGHBOR_RESET,
+ api.REQ_NEIGHBOR_SOFT_RESET_IN, api.REQ_NEIGHBOR_SOFT_RESET_OUT,
+ api.REQ_ADJ_RIB_IN, api.REQ_ADJ_RIB_OUT,
+ api.REQ_NEIGHBOR_ENABLE, api.REQ_NEIGHBOR_DISABLE:
+
remoteAddr := restReq.RemoteAddr
result := &api.RestResponse{}
info, found := server.peerMap[remoteAddr]