dellcloudedge/barclamp-network — pull request #79 by cdearborn (2012-10-02 21:43:22+00:00)
Title: Read new network json & instanciate models [1/1]

Added code to read the new network json and instantiate network models
Correct Network.dhcp_enabled data type
Updated unit tests based on discussions

.../data_bags/crowbar/bc-template-network-new.json | 52 +-------
.../crowbar/bc-template-network-new.schema | 9 +-
.../app/controllers/network_controller.rb | 9 +-
crowbar_framework/app/models/conduit_rule.rb | 2 -
crowbar_framework/app/models/network.rb | 3 +-
.../app/models/network_mode_filter.rb | 10 ++
crowbar_framework/app/models/network_service.rb | 136 ++++++++++++++++++++
crowbar_framework/app/models/select_by_index.rb | 4 +
crowbar_framework/app/models/select_by_speed.rb | 4 +
.../db/migrate/20120730175122_create_networks.rb | 2 +-
crowbar_framework/test/network_test_helper.rb | 2 +-
crowbar_framework/test/unit/conduit_rule_test.rb | 28 ----
crowbar_framework/test/unit/network_model_test.rb | 19 +---
.../test/unit/network_service_test.rb | 37 ++++--
14 files changed, 203 insertions(+), 114 deletions(-)