1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-25 11:48:21 +00:00
thatmattlove-hyperglass/hyperglass/models
Tan Siewert 79d235c2ff
frr: return AS0 if AS_PATH length is zero
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>
2025-10-04 21:35:30 +02:00
..
api Merge branch 'main' into computroniks/bug/#311-fix-field-validation 2025-09-27 20:58:59 -04:00
config Merge branch 'main' into computroniks/bug/#311-fix-field-validation 2025-09-27 20:58:59 -04:00
data format and lint 2025-06-14 21:44:20 -04:00
parsing frr: return AS0 if AS_PATH length is zero 2025-10-04 21:35:30 +02:00
tests format and lint 2025-06-14 21:44:20 -04:00
__init__.py Improve MultiModel API 2021-09-18 09:51:47 -07:00
directive.py Fix bug: Directives will be error on deserialize rules and field with None type 2025-09-25 23:17:21 -04:00
fields.py upgrade major dependencies 2024-03-16 23:17:54 -04:00
main.py fix prepending of HYPERGLASS_APP_PATH to values; closes #253 2024-06-01 15:08:59 -04:00
system.py fix container file handling 2024-05-27 16:08:50 -04:00
ui.py Fix bug: Directives will be error on deserialize rules and field with None type 2025-09-25 23:17:21 -04:00
util.py logging overhaul 2024-04-01 23:42:07 -04:00
webhook.py logging overhaul 2024-04-01 23:42:07 -04:00