mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-25 11:48:21 +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 | ||
| config | ||
| data | ||
| parsing | ||
| tests | ||
| __init__.py | ||
| directive.py | ||
| fields.py | ||
| main.py | ||
| system.py | ||
| ui.py | ||
| util.py | ||
| webhook.py | ||