crowbar/barclamp-network — pull request #231 by cloudedge (2013-10-21 04:28:12+00:00)
Title: Enable node attributes from discover data [2/2]

The baseline code was in place to do this for a while, this pull mainly
makes it testable and then fixes the UI to correctly render the attribs.

Most of the attribs are simple json path resolution, there are a few that
are more tricky.

I have avoided the tricky ones except for 2 as proof points:
1) number of drives uses a subclass for the counting logic
2) switches has some logic to build the switch list

Added protections for missing information.

For now, this is primarily to support the UI but could be extended into the API if needed.

.../app/models/barclamp_network/attrib_switches.rb | 50 ++++++++++++++++++++
.../db/migrate/20131018_add_network_attibs.rb | 31 ++++++++++++
2 files changed, 81 insertions(+)

Crowbar-Pull-ID: ee99a890a1474d496e875d6d9a09f7959a992687

Crowbar-Release: development