Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use get_snmp_session_for_profile() in Arnold
Arnold mostly uses PortAdmin management handlers, except for when changing the ifAdminStatus value of a port. This lets the get_snmp_session_for_profile() utility function set up these SNMP sessions instead, so that even SNMPv3 sessions will be supported. Additionally, to avoid mocking hell when updating the corresponding unit tests, this inserts an optional argument for dependency injection, so a caller (i.e. the test suite) can specify which utility function to use to fetch an Snmp class.
- Loading branch information