mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
fixed import export naming
This commit is contained in:
parent
8fcda1c7eb
commit
afd39c4d9a
2 changed files with 7 additions and 7 deletions
12
bird/bird.go
12
bird/bird.go
|
@ -251,22 +251,22 @@ func RoutesDump() (Parsed, bool) {
|
|||
}
|
||||
|
||||
func RoutesDumpSingleTable() (Parsed, bool) {
|
||||
exportedRes, cached := RunAndParse("route all", parseRoutes)
|
||||
importedRes, cached := RunAndParse("route all", parseRoutes)
|
||||
filteredRes, _ := RunAndParse("route filtered all", parseRoutes)
|
||||
|
||||
exported := exportedRes["routes"]
|
||||
imported := importedRes["routes"]
|
||||
filtered := filteredRes["routes"]
|
||||
|
||||
result := Parsed{
|
||||
"exported": exported,
|
||||
"imported": imported,
|
||||
"filtered": filtered,
|
||||
}
|
||||
return result, cached
|
||||
}
|
||||
|
||||
func RoutesDumpPerPeerTable() (Parsed, bool) {
|
||||
exportedRes, cached := RunAndParse("route all", parseRoutes)
|
||||
exported := exportedRes["routes"]
|
||||
importedRes, cached := RunAndParse("route all", parseRoutes)
|
||||
imported := importedRes["routes"]
|
||||
filtered := []Parsed{}
|
||||
|
||||
// Get protocols with filtered routes
|
||||
|
@ -300,7 +300,7 @@ func RoutesDumpPerPeerTable() (Parsed, bool) {
|
|||
}
|
||||
|
||||
result := Parsed{
|
||||
"exported": exported,
|
||||
"exported": imported,
|
||||
"filtered": filtered,
|
||||
}
|
||||
return result, cached
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
//go:generate versionize
|
||||
var VERSION = "1.9.2"
|
||||
var VERSION = "1.10.0"
|
||||
|
||||
func isModuleEnabled(module string, modulesEnabled []string) bool {
|
||||
for _, enabled := range modulesEnabled {
|
||||
|
|
Loading…
Add table
Reference in a new issue