-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
get session from manager #62
Comments
I don't see why you would need to have |
Thank you Vincent for your quick answer, I should have explained me better. The reason is, (within Agent-Jones) for 99% of my SNMP get and set, I use MIBs and the pythonic interface:
but in one place, I want to allow a SNMP get/walk on an oid passed as parameter :
Or Is there a way to do this using a manager ? |
That's not possible with the manager. So, your way of doing it is the better way. I don't want to provide an "official" way because it would mean that I have to maintain some stability guarantee on the session API. I didn't intend for people to use it (but many do). |
That's ok, I can live with this workaround. Thanks again for your support ! |
This is not really an issue but more a question: if I create a manager using something like this
m = M(host=devicename, community=...)
but I need the session to do asession.get()
orsession.walkmore()
, how can I recover it ?I'm using
session = m._session._session
but it looks a bit ugly to me. Any advice ?The text was updated successfully, but these errors were encountered: