diff options
author | Vincent Bernat <vincent@bernat.im> | 2017-12-06 13:19:47 +0100 |
---|---|---|
committer | Vincent Bernat <vincent@bernat.im> | 2017-12-06 13:19:47 +0100 |
commit | abf6808c5e3a01a4d75e599bfa36b04dabd1dae3 (patch) | |
tree | 3f240efc726d5470ffd7289c1a4aa63717ad6176 /VERSION | |
parent | 2c03fdbcb894e319976aa3282794409e04108c7f (diff) |
packet/bgp: JSON encode of MP_UNREACH_NLRI attribute
MP_REACH_NLRI was already correctly encoded in JSON, while this was
not the case for MP_UNREACH_NLRI.
Before:
```json
"PathAttributes": [
{
"type": 15,
"value": "AAIBQCABDbgAEwAA"
}
]
```
After:
```json
"PathAttributes": [
{
"type": 15,
"afi": 2,
"value": [
{
"prefix": "2001:db8:8::/64"
}
],
"safi": 1
}
]
```
This commit also adds two tests not directly related to JSON encoding
as I was first thinking the problem may be related to incorrect
parsing of the path attribute.
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions