mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
assert Parsed type
This commit is contained in:
parent
f64a6648b6
commit
aa16573bed
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ func isSpecial(ret Parsed) bool {
|
|||
|
||||
func isRouteFiltered(rdata interface{}) bool {
|
||||
// Get communities from parsed result
|
||||
route := rdata.(map[string]interface{})
|
||||
bgpInfo := route["bgp"].(map[string]interface{})
|
||||
route := rdata.(Parsed)
|
||||
bgpInfo := route["bgp"].(Parsed)
|
||||
|
||||
communities := bgpInfo["communities"].([]interface{})
|
||||
for _, comdata := range communities {
|
||||
|
|
Loading…
Add table
Reference in a new issue