1
0
Fork 0
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:
Matthias Hannig 2019-01-25 10:54:29 +01:00
parent f64a6648b6
commit aa16573bed

View file

@ -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 {