Comments (7)
@guedou @nv-anssi : could you please help me on this ?
from tabi.
Hello Nagarjung,
We are not able to reproduce your error. What version of Python do you run?
Nicolas
from tabi.
@nv-anssi : I run python 2.7.6, which version is required to run this tool.
FYI, I am not running the tool inside virtualenv. I am running on host machine with python 2.7.6
from tabi.
Hi @nv-anssi : After debugging a bit, I could able to point out the issue
https://github.com/ANSSI-FR/tabi/blob/master/tabi/annotate.py
line 222
if asn in node.data and int(prefix.split("/")[1]) <= node.data[asn]:
-> if asn in node.data and int(prefix.split("/")[1]) <= node.data[asn]:
(Pdb) asn in node.data
True
(Pdb) int(prefix.split("/")[1])
19
(Pdb) node.data[asn]
set(['apnic'])
(Pdb) n
TypeError: 'can only compare to a set'
from tabi.
The value in node.data[asn]
is unexpected. It should be an integer. Could you check that your roa.csv
file is correct (same as the one in the repository)?
from tabi.
Yes the roa.csv file is same as in the repository.
16079,194.209.159.0/24,24,True
16078,80.89.147.0/24,24,True
35545,185.42.222.0/24,24,True
16071,212.234.194.0/24,24,True
35238,77.203.169.0/24,24,True
35238,78.113.119.0/24,24,True
Yes the comparision int(prefix.split("/")[1]) <= node.data[asn]
is throwing an error.
May be problem with data insertion ?
from tabi.
@nv-anssi : Finally caught the issue.
https://github.com/ANSSI-FR/tabi/blob/master/tabi/emulator.py
line 136
funcs.append(partial(annotate_if_roa, ro_rad_tree))
I think wrong object ro_rad_tree
is passed, instead the object should have been roa_rad_tree
funcs.append(partial(annotate_if_roa, roa_rad_tree))
from tabi.
Related Issues (5)
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 tabi.