smartbgp / yabgp

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

Cannot advertise a route-target community with IPv4 SR-TE update #73

Closed deepgajjar5 closed 6 years ago

deepgajjar5 commented 6 years ago

I am not able to advertise the route-target extended community with IPv4 SR-TE update:

2018-03-13 18:28:32,392.392 12597 INFO yabgp.api.utils decorated_function 37 [-] API POST data {u'attr': {u'1': 0, u'23': {u'128': [{u'9': 10, u'1': [{u'1': {u'label': 999990}}, {u'1': {u'label': 900003}}, {u'1': {u'label': 900002}}]}, {u'9': 10, u'1': [{u'1': {u'label': 999991}}, {u'1': {u'label': 900004}}, {u'1': {u'label': 900002}}]}, {u'9': 10, u'1': [{u'1': {u'label': 999992}}, {u'1': {u'label': 900003}}, {u'1': {u'label': 900002}}]}, {u'9': 10, u'1': [{u'1': {u'label': 999993}}, {u'1': {u'label': 900004}}, {u'1': {u'label': 900002}}]}], u'0': u'new', u'13': 965537, u'12': 4200}, u'2': [[2, [10, 2, 3]]], u'14': {u'afi_safi': [1, 73], u'nexthop': u'172.24.64.97', u'nlri': {u'color': 20, u'endpoint': u'89.0.0.1', u'distinguisher': 6001}}, u'16': [u'route-target:89.1.1.1']}} 2018-03-13 18:28:32,392.392 12597 DEBUG yabgp.api.utils decorated_function 38 [-] API request environ {'HTTP_AUTHORIZATION': 'Basic YWRtaW46YWRtaW4=', 'HTTP_ACCEPT': 'text/plain', 'CONTENT_TYPE': 'application/json', 'werkzeug.request': <Request 'http://172.24.64.97:8801/v1/peer/172.24.76.178/send/update' [POST]>, 'wsgi.multithread': True, 'SCRIPT_NAME': '', 'wsgi.input': <twisted.web.wsgi._InputStream object at 0x7f25c92dbb90>, 'REQUEST_METHOD': 'POST', 'HTTP_HOST': '172.24.64.97:8801', 'PATH_INFO': '/v1/peer/172.24.76.178/send/update', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'wsgi.version': (1, 0), 'HTTP_CONTENT_TYPE': 'application/json', 'HTTP_CONTENT_LENGTH': '640', 'CONTENT_LENGTH': '640', 'HTTP_USER_AGENT': 'python-requests/2.18.4', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': '172.24.64.97', 'REMOTE_ADDR': '172.24.77.6', 'wsgi.run_once': False, 'wsgi.errors': <twisted.web.wsgi._ErrorStream object at 0x7f25cb0e6b10>, 'wsgi.multiprocess': False, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8801', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'} 2018-03-13 18:28:32,392.392 12597 DEBUG yabgp.api.v1 send_update_message 108 [-] Try to send update message to peer 172.24.76.178 2018-03-13 18:28:32,392.392 12597 ERROR yabgp.core.protocol send_update 284 [-] need more than 1 value to unpack