From 6d2fec2f4f86edc29a058b4971553fe48b1a7c7c Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 4 Apr 2015 23:39:51 +0900 Subject: api: return error for invalid route family table Signed-off-by: FUJITA Tomonori --- api/rest.go | 1 + 1 file changed, 1 insertion(+) 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 } } -- cgit v1.2.3