summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-04 23:39:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-04 23:39:51 +0900
commit6d2fec2f4f86edc29a058b4971553fe48b1a7c7c (patch)
treee658d096eeb96d810d96a23992d2a8c472e2b43e
parentdd23afaff4fdd47442be82318e5dc4556404b90d (diff)
api: return error for invalid route family table
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--api/rest.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/rest.go b/api/rest.go
index 3d62c5a5..1201abea 100644
--- a/api/rest.go
+++ b/api/rest.go
@@ -155,6 +155,7 @@ func (rs *RestServer) neighbor(w http.ResponseWriter, r *http.Request, reqType i
rf = bgp.RF_EVPN
default:
NotFoundHandler(w, r)
+ return
}
}