From 2bd0e33a32461b0a9fe7a95ba71719012b23e1c4 Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Thu, 24 Nov 2016 17:59:19 +0100 Subject: [PATCH] protocols need to be quoted --- bird/bird.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bird/bird.go b/bird/bird.go index b31ab39..b737344 100644 --- a/bird/bird.go +++ b/bird/bird.go @@ -80,41 +80,41 @@ func Symbols() (Parsed, bool) { } func RoutesProto(protocol string) (Parsed, bool) { - return RunAndParse("route protocol "+protocol+" all", + return RunAndParse("route protocol '"+protocol+"' all", parseRoutes) } func RoutesProtoCount(protocol string) (Parsed, bool) { - return RunAndParse("route protocol "+protocol+" count", + return RunAndParse("route protocol '"+protocol+"' count", parseRoutesCount) } func RoutesExport(protocol string) (Parsed, bool) { - return RunAndParse("route export "+protocol+" all", + return RunAndParse("route export '"+protocol+"' all", parseRoutes) } func RoutesExportCount(protocol string) (Parsed, bool) { - return RunAndParse("route export "+protocol+" count", + return RunAndParse("route export '"+protocol+"' count", parseRoutesCount) } func RoutesTable(table string) (Parsed, bool) { - return RunAndParse("route table "+table+" all", + return RunAndParse("route table '"+table+"' all", parseRoutes) } func RoutesTableCount(table string) (Parsed, bool) { - return RunAndParse("route table "+table+" count", + return RunAndParse("route table '"+table+"' count", parseRoutesCount) } func RoutesLookupTable(net string, table string) (Parsed, bool) { - return RunAndParse("route for "+net+" table "+table+" all", + return RunAndParse("route for '"+net+"' table '"+table+"' all", parseRoutes) } func RoutesLookupProtocol(net string, protocol string) (Parsed, bool) { - return RunAndParse("route for "+net+" protocol "+protocol+" all", + return RunAndParse("route for '"+net+"' protocol '"+protocol+"' all", parseRoutes) }