summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/bgp_unnumbered_test.py
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.im>2017-12-06 13:19:47 +0100
committerVincent Bernat <vincent@bernat.im>2017-12-06 13:19:47 +0100
commitabf6808c5e3a01a4d75e599bfa36b04dabd1dae3 (patch)
tree3f240efc726d5470ffd7289c1a4aa63717ad6176 /test/scenario_test/bgp_unnumbered_test.py
parent2c03fdbcb894e319976aa3282794409e04108c7f (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 'test/scenario_test/bgp_unnumbered_test.py')
0 files changed, 0 insertions, 0 deletions