rackerlabs/ironic-neutron-plugin — pull request #1 by russellhaering (2014-06-02 04:55:11+00:00)
Title: Close nnclient Sessions

Currently the Cisco driver doesn't close nnclient sessions. This
change splits each driver method into two: a public wrapper which
instantiates a session and uses it as a context manager, and a private
implementation which takes a session. This allows sessions to be
passed when methods call each other, while ensuring that they will be
cleaned up when the top-level method returns.