cyberreboot / gensynet Goto Github PK
View Code? Open in Web Editor NEWA command line tool used to create synthetic network profiles and synthetic hosts in JSON.
A command line tool used to create synthetic network profiles and synthetic hosts in JSON.
Reported by @cglewis
This function seemed to crash sometimes when divvying up hosts among a variable number of subnets.
>>> gensynet.randomize_subnet_breakdown(1000, 104, 150)
DEBUG: subnet count: 150 nodes left: 850
DEBUG: subnet count: 114 nodes left: 736
DEBUG: subnet count: 125 nodes left: 611
DEBUG: subnet count: 116 nodes left: 495
DEBUG: subnet count: 144 nodes left: 351
DEBUG: subnet count: 141 nodes left: 210
DEBUG: subnet count: 125 nodes left: 85
DEBUG: looping with s=1, count=114, left=85
DEBUG: looping with s=0, count=150, left=84
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/achang/Projects/gensynet/gensynet.py", line 324, in randomize_subnet_breakdown
subnets.remove(s)
ValueError: list.remove(x): x not in list
Just ran into this today when generating a data set. When it first generates totals and then prompts you to reset the distribution you see:
...
VOIP phone : 0
Unknown : 160
Manually reset the above Device Role Distribution? [No]: yes
...but then it presents "Unknown" before "VOIP" which through me off:
Unknown (MAX=191) [160]:
VOIP phone (MAX=31) [0]: 31
Can we make these uniform?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.