Comments (8)
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.
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.
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.
@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.
@deepgajjar5 any comment?
from yabgp.
@xiaopeng163 I will be testing it this week and get back. Thanks for the help.
from yabgp.
I have been able to send policies with higher length (8 SLs) after pulling the latest branch. Thanks!
from yabgp.
good, I will close this issue.
from yabgp.
Related Issues (20)
- Link-bandwidth Extended Community Support Question HOT 2
- yabgpd execution error HOT 2
- any clue for the error I see when I test with POSTMAN API request? HOT 2
- Example of multiple sid lists HOT 1
- Windows pip install .zip error
- NLRI attribute: IP prefix parse error
- nothing is sent when --nouse-stderr is set HOT 1
- ipv6_unicast construct error
- Add support for parsing BGP-LS TLVs in BGP link-state extensions for SRv6
- Decoding the detailed meaning of the flags of SRv6-related TLV
- Fix IPv6 unicast decoding
- attr 29 unparsed
- Format some variables as strings
- LocalRouterID distinguishes between ipv4 and ipv6 types
- Fix decode "source_router_id" of ipv6 type
- Multiple peers in the same YABGP process
- Add support for construct the Capability: Extended Next Hop Encoding (Type 5) in BGP OPEN Message
- Add support for parsing the Path Attribute: BGP Prefix-SID (Type 40) in BGP UPDATE Message
- Need to fix the version number of the dependency netaddr
- Add sequence number HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yabgp.