Closed joshqoon closed 2 years ago
./sbin/exabgp decode -f 'bgp-ls bgp-ls' FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0075020000005E900E003D40044704C0A8640200000300300200000000000002BC0100001A0200000400003E34020100040000000002030006010135000041010900051E0A86025840010100400206020100003E34801D0D04830004000000640492000100 2>&1 | tail -1 | cut -b28- | jsonpp
{
"exabgp": "5.0.0",
"time": 1651190252.206673,
"host": "MacBook-Pro-2.local",
"pid": 26366,
"ppid": 60659,
"counter": 1,
"type": "update",
"neighbor": {
"address": {
"local": "127.0.0.1",
"peer": "127.0.0.1"
},
"asn": {
"local": 65533,
"peer": 65533
},
"direction": "in",
"message": {
"update": {
"attribute": {
"origin": "igp",
"as-path": {
"0": {
"element": "as-sequence",
"value": [
15924
]
}
},
"bgp-ls": {
"prefix-metric": 100,
"sr-prefix-attribute-flags": {
"X": 0,
"R": 0,
"N": 0,
"RSV": 0
}
}
},
"announce": {
"bgp-ls bgp-ls": {
"192.168.100.2": [
{
"ls-nlri-type": "bgpls-prefix-v4",
"l3-routing-topology": 700,
"protocol-id": 2,
"node-descriptors": [
{
"autonomous-system": 15924
},
{
"bgp-ls-identifier": "0"
},
{
"router-id": "010135000041"
}
],
"ip-reachability-tlv": "10.134.2.88",
"ip-reach-prefix": "10.134.2.88/30",
"nexthop": "192.168.100.2"
}
]
}
}
}
}
}
}
Hi
JSONDecodeError for key
node-descriptors
in bgpls nlri types node and prefix:the following line should return a list .
https://github.com/Exa-Networks/exabgp/blob/b3f4dd8dfd5582fc50a25704bc3b9e2baaf5105e/src/exabgp/bgp/message/update/nlri/bgpls/prefixv4.py#L132
same for this line:
https://github.com/Exa-Networks/exabgp/blob/b3f4dd8dfd5582fc50a25704bc3b9e2baaf5105e/src/exabgp/bgp/message/update/nlri/bgpls/node.py#L57