Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to parse srv6 BGP-LS attributes #1085

Open
Aansh2 opened this issue May 11, 2022 · 0 comments
Open

Not able to parse srv6 BGP-LS attributes #1085

Aansh2 opened this issue May 11, 2022 · 0 comments
Assignees

Comments

@Aansh2
Copy link

Aansh2 commented May 11, 2022

Describe the bug
Not able to parse srv6 enabled router messages -

To Reproduce

Steps to reproduce the behavior:

/sbin/exabgp decode -f 'bgp-ls bgp-ls' "0000 02EC 900E 02C7 4004 4710 FC00 1000 0001 0000 0000 0000 0000 0001 0000 0600 4102 0000 0000 0002 1C90 0100 001A 0200 0004 0002 1C90 0201 0004 0000 0000 0203 0006 0000 0000 0009 0107 0002 0002 0206 0010 FC00 1003 0002 0000 0000 0000 0000 0000 0006 0041 0200 0000 0000 021C 9001 0000 1A02 0000 0400 021C 9002 0100 0400 0000 0002 0300 0600 0000 0000 0801 0700 0200 0202 0600 10FC 0010 0300 0100 0000 0000 0000 0000 0000 0600 4102 0000 0000 0002 1C90 0100 001A 0200 0004 0002 1C90 0201 0004 0000 0000 0203 0006 0000 0000 0004 0107 0002 0002 0206 0010 FC00 1003 0014 0000 0000 0000 0000 0000 0006 0041 0200 0000 0000 021C 9001 0000 1A02 0000 0400 021C 9002 0100 0400 0000 0002 0300 0600 0000 0000 0301 0700 0200 0202 0600 10FC 0010 0300 1300 0000 0000 0000 0000 0000 0600 4102 0000 0000 0002 1C90 0100 001A 0200 0004 0002 1C90 0201 0004 0000 0000 0203 0006 0000 0000 0002 0107 0002 0002 0206 0010 FC00 1003 0012 0000 0000 0000 0000 0000 0006 0041 0200 0000 0000 021C 9001 0000 1A02 0000 0400 021C 9002 0100 0400 0000 0002 0300 0600 0000 0000 0101 0700 0200 0202 0600 10FC 0010 0300 1100 0000 0000 0000 0000 0000 0600 4102 0000 0000 0000 0000 0100 001A 0200 0004 0002 1C90 0201 0004 0000 0000 0203 0006 0003 0000 0009 0107 0002 0002 0206 0010 FC00 1003 0002 0000 0000 0000 0000 0000 0006 0041 0200 0000 0000 0000 0001 0000 1A02 0000 0400 021C 9002 0100 0400 0000 0002 0300 0600 0300 0000 0801 0700 0200 0202 0600 10FC 0010 0300 0100 0000 0000 0000 0000 0000 0600 4102 0000 0000 0000 0000 0100 001A 0200 0004 0002 1C90 0201 0004 0000 0000 0203 0006 0000 0000 0015 0107 0002 0002 0206 0010 FC00 1003 0112 0000 0000 0000 0000 0000 0006 0041 0200 0000 0000 0000 0001 0000 1A02 0000 0400 021C 9002 0100 0400 0000 0002 0300 0600 0000 0000 1401 0700 0200 0202 0600 10FC 0010 0301 1100 0000 0000 0000 0000 0040 0101 0040 0200 4005 0400 0000 6480 1D10 04E2 0004 0030 0082 04E4 0004 2010 0000"

Expected behavior

Should show all parameters in json format

** Error **

update json { "exabgp": "5.0.0", "time": 1652277294.189871, "host" : "RININ275", "pid" : 96015, "ppid" : 81046, "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", "local-preference": 100, "bgp-ls": { "generic-lsid-1250": ["0x00300082"], "generic-lsid-1252": ["0x20100000"] } }, "announce": { "bgp-ls bgp-ls": { "fc00:1000:1::1": [ { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000901070002000202060010FC001003000200000000000000000000" }, { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000801070002000202060010FC001003000100000000000000000000" }, { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000401070002000202060010FC001003001400000000000000000000" }, { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000301070002000202060010FC001003001300000000000000000000" }, { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000201070002000202060010FC001003001200000000000000000000" }, { "code": 6, "parsed": false, "raw": "0641020000000000021C900100001A0200000400021C9002010004000000000203000600000000000101070002000202060010FC001003001100000000000000000000" }, { "code": 6, "parsed": false, "raw": "06410200000000000000000100001A0200000400021C9002010004000000000203000600030000000901070002000202060010FC001003000200000000000000000000" }, { "code": 6, "parsed": false, "raw": "06410200000000000000000100001A0200000400021C9002010004000000000203000600030000000801070002000202060010FC001003000100000000000000000000" }, { "code": 6, "parsed": false, "raw": "06410200000000000000000100001A0200000400021C9002010004000000000203000600000000001501070002000202060010FC001003011200000000000000000000" }, { "code": 6, "parsed": false, "raw": "06410200000000000000000100001A0200000400021C9002010004000000000203000600000000001401070002000202060010FC001003011100000000000000000000" } ] } } } } } }

@Aansh2 Aansh2 added the bug label May 11, 2022
@thomas-mangin thomas-mangin changed the title Not able to parse BGP-LS attributes Not able to parse srv6 BGP-LS attributes May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants