From 2a17304682f3f4dbca46a69d3b651b462437290d Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Thu, 29 Nov 2018 15:28:00 +0100 Subject: [PATCH] fixed command syntax --- bird/bird.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bird/bird.go b/bird/bird.go index 2ba5956..2e7b9b9 100644 --- a/bird/bird.go +++ b/bird/bird.go @@ -200,7 +200,8 @@ func RoutesProtoCount(protocol string) (Parsed, bool) { } func RoutesFiltered(protocol string) (Parsed, bool) { - cmd := routeQueryForChannel("route all filtered " + protocol) + cmd := routeQueryForChannel("route filtered protocol '" + protocol + "' all") + return RunAndParse(cmd, parseRoutes) } @@ -221,7 +222,7 @@ func RoutesNoExport(protocol string) (Parsed, bool) { protocol[len(ParserConf.PeerProtocolPrefix):] } - cmd := routeQueryForChannel("route all noexport " + protocol) + cmd := routeQueryForChannel("route noexport '" + protocol + "' all") return RunAndParse(cmd, parseRoutes) }