Git Product home page Git Product logo

Comments (8)

xiaopeng163 avatar xiaopeng163 commented on September 4, 2024

Hey, could you please run yabgp with debug mode (use --verbose in command line), and send this update again?

then paste the log output message here? Thanks

from yabgp.

deepgajjar5 avatar deepgajjar5 commented on September 4, 2024

Here are the logs after running yabgp with verbose command:

2018-03-06 16:44:09,707.707 13569 INFO yabgp.api.utils decorated_function 37 [-] API POST data {u'attr': {u'1': 0, u'8': [u'NO_ADVERTISE'], u'2': [[2, [30, 2, 3]]], u'14': {u'afi_safi': [1, 73], u'nexthop': u'172.24.64.99', u'nlri': {u'color': 501, u'endpoint': u'30.255.0.1', u'distinguisher': 4294966256}}, u'23': {u'128': [{u'9': 100, u'1': [{u'1': {u'label': 999990}}, {u'1': {u'label': 900005}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999991}}, {u'1': {u'label': 900006}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999992}}, {u'1': {u'label': 900005}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999993}}, {u'1': {u'label': 900006}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999994}}, {u'1': {u'label': 900005}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999995}}, {u'1': {u'label': 900005}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999996}}, {u'1': {u'label': 900006}}, {u'1': {u'label': 900007}}]}, {u'9': 100, u'1': [{u'1': {u'label': 999997}}, {u'1': {u'label': 900006}}, {u'1': {u'label': 900007}}]}], u'0': u'new', u'13': 975796, u'12': 4100}}}
2018-03-06 16:44:09,707.707 13569 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.99:8801/v1/peer/172.24.76.173/send/update' [POST]>, 'wsgi.multithread': True, 'SCRIPT_NAME': '', 'wsgi.input': <twisted.web.wsgi._InputStream object at 0x7f61265d9a50>, 'REQUEST_METHOD': 'POST', 'HTTP_HOST': '172.24.64.99:8801', 'PATH_INFO': '/v1/peer/172.24.76.173/send/update', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'wsgi.version': (1, 0), 'HTTP_CONTENT_TYPE': 'application/json', 'HTTP_CONTENT_LENGTH': '1031', 'CONTENT_LENGTH': '1031', 'HTTP_USER_AGENT': 'python-requests/2.18.4', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': '172.24.64.99', 'REMOTE_ADDR': '172.24.77.6', 'wsgi.run_once': False, 'wsgi.errors': <twisted.web.wsgi._ErrorStream object at 0x7f61265d9290>, 'wsgi.multiprocess': False, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8801', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}
2018-03-06 16:44:09,707.707 13569 DEBUG yabgp.api.v1 send_update_message 108 [-] Try to send update message to peer 172.24.76.173
2018-03-06 16:44:09,708.708 13569 ERROR yabgp.core.protocol send_update 284 [-] ubyte format requires 0 <= number <= 255

from yabgp.

meidli avatar meidli commented on September 4, 2024

@deepgajjar5

The problem caused by the length limit of 23 path attribute(Tunnel Encapsulation).
Our program permit segment list be add infinitely according to draft docs, but the 1 octet length field of path attribute entail that the length of Tunnel Encapsulation value can't exceed 255. So the number of segment list is finite, In your case, it can not exceed 6.

We will enhance the exception handling about this.
thanks for your question, close.

from yabgp.

xiaopeng163 avatar xiaopeng163 commented on September 4, 2024

@deepgajjar5 we changed the attribute's flag to support extended length, now I think it will work,
please get the latest master branch code and try again, thanks.

from yabgp.

xiaopeng163 avatar xiaopeng163 commented on September 4, 2024

@deepgajjar5 any comment?

from yabgp.

deepgajjar5 avatar deepgajjar5 commented on September 4, 2024

@xiaopeng163 I will be testing it this week and get back. Thanks for the help.

from yabgp.

deepgajjar5 avatar deepgajjar5 commented on September 4, 2024

@xiaopeng163,

I have been able to send policies with higher length (8 SLs) after pulling the latest branch. Thanks!

from yabgp.

xiaopeng163 avatar xiaopeng163 commented on September 4, 2024

good, I will close this issue.

from yabgp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.