mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-23 02:38:06 +00:00
Local prefixes usually do not have an AS_PATH:
```
vtysh -c "show bgp ipv4 unicast 10.10.10.10 json" | jq '.paths[].aspath'
{
"string": "Local",
"segments": [],
"length": 0
}
```
Set AS0 as a temporary solution when AS_PATH length is zero. This
avoids parser failures for local prefixes, though ideally we should
use the device's actual ASN (see TODO in code).
Signed-off-by: Tan Siewert <tan@siewert.io>
|
||
|---|---|---|
| .. | ||
| api | ||
| cli | ||
| compat | ||
| configuration | ||
| defaults | ||
| exceptions | ||
| execution | ||
| external | ||
| frontend | ||
| images | ||
| models | ||
| plugins | ||
| state | ||
| ui | ||
| util | ||
| .gitignore | ||
| __init__.py | ||
| console.py | ||
| constants.py | ||
| log.py | ||
| main.py | ||
| settings.py | ||
| types.py | ||