Added code from nornir_buildmanager which will also be used by nornir-web management interface