-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
mib2dev.py: automatic values hit ConstraintsIntersection #66
Comments
Depending on the underlying type of Once you have the initial There is currently no option to limit the values of specific MIB objects, but it could be added. |
The The best would be to add the option, since the possible values are present in the error message. One problem is that we don't want to go interactive - an interim solution would be to add an option to: output the variable name (as MIB::var) that can't be generated on stdout and continue. The idea here is to generate some data ASAP when we develop. an SNMP driver. |
That seems doable. Let me see if I get a bit of time to work on this. |
Well, not quite, apparently. Trouble is that whenever we fail on SNMP table index, we effectively fail on the whole table row... There is a good chance that, for some tightly constrained table indices, we are unlikely to ever pick the right value. That leads to skipping the whole table, what makes this tool next to being useless. That makes me think that the better course of action would be to "reverse" the constraints meaning the ability to generate samples out of constraints. That would be the reflective operation in the sense that what we currently have is that we feed a value to the constraints tree to see if the value fits the constraints. What we'd need, I think, is given the constraints tree we produce a value which would satisfy the constraints. |
Indeed, that would the best solution and a more architecturally sound solution. |
While generating a data set, mib2dev.py, I got the error:
Processing this MIB entry:
Since the script suggest me the proper values, is it possible to add an option so that the generator just pick one of them (randomly) ?
Is the option:
[--automatic-values=<max-probes>]
is the one used for that ?EDIT: After I tried 15 MIBs from different companies, 8 cannot be synthesized ... mainly because of
ConstraintsIntersection, or "invalid literal for int() with base 10" (generated value is a string 'kept Jaded...'
Thanks for this project,
The text was updated successfully, but these errors were encountered: