crowbar/barclamp-network — pull request #248 by VictorLowther (2013-12-04 00:45:26+00:00)
Title: Start rework of attribs to improve data isolation during annealing [2/3]

Start rework of attribs to let them be role driven.

Among the changes:

* Declare default attribs in crowbar.yml, either in a top-level attribs
section or as part of a role.
* Enhance the attrib type finding model to allow for jig-specific
customizations.
* Allow roles to declare that they want specific attributes. Nothing
uses this now, but it will wind up replacing the current attribute
gathering logic that the jigs use.

The aim of this is to lay the groundwork for replacing our
current overly simple strategy for figuring out which attributes to
inject. It does not start the work of replacing that code yet -- that
will come in a future pull request.

crowbar.yml | 8 ++++
.../app/models/barclamp_network/attrib/switches.rb | 50 ++++++++++++++++++++++
.../app/models/barclamp_network/attrib_switches.rb | 50 ----------------------
.../migrate/20131018000000_add_network_attribs.rb | 31 --------------
4 files changed, 58 insertions(+), 81 deletions(-)

Crowbar-Pull-ID: a5df278b8c055255c255e395c0bbfbf2cf28a449

Crowbar-Release: development