mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
protocols need to be quoted
This commit is contained in:
parent
9b4f9bb8e9
commit
2bd0e33a32
1 changed files with 8 additions and 8 deletions
16
bird/bird.go
16
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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue