smartbgp / yabgp

:bowtie:Yet Another BGP Python Implementation
http://yabgp.readthedocs.org
Apache License 2.0
238 stars 70 forks source link

fix object of type 'bytes' is not JSON serializable issue #109

Closed shinn1982 closed 4 years ago

shinn1982 commented 4 years ago

ERROR yabgp.handler.default_handler [-] Object of type bytes is not JSON serializable

raw message {'msg': {'attr': {1: 0, 2: [(2, [65001, 27418, 8100, 4826, 17477])], 3: '172.31.13.194', 5: 100, 8: ['4826:1000', '4826:5204', '4826:7000', '4826:52041', '8100:50', '17477:10100', '29761:50'], 9: '172.31.13.194', 10: ['172.31.51.169'], 128: b'0000ffdc4001010040020040050400000064'}, 'nlri': ['203.8.71.0/24', '203.56.122.0/24', '85.118.153.0/24'], 'withdraw': [], 'afi_safi': 'ipv4'}}

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at ?% when pulling e117885a832ea874cc8a216951d41be2e36931eb on shinn1982:master into 3c77036e2e42e3715a2393d2f9e20967c3d89be4 on smartbgp:master.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at ?% when pulling e117885a832ea874cc8a216951d41be2e36931eb on shinn1982:master into 3c77036e2e42e3715a2393d2f9e20967c3d89be4 on smartbgp:master.