crowbar/barclamp-network — pull request #122 by cdearborn (2013-02-05 23:08:42+00:00)
Title: Setting ip address as attribute and exposing bus_order_call [2/2]

This pull contains 2 changes:
1. When an ip address is allocated to a node, it is set as an attribute on the node.
2. The 1st part of the conduit calculation: bus_order has been implemented and exposed as a customer attr on the node.

.../app/models/attrib_instance_bus_order.rb | 45 ++++++++++
.../app/models/attrib_instance_ip_address.rb | 51 +++++++++++
crowbar_framework/app/models/interface_map.rb | 15 +++-
crowbar_framework/app/models/network.rb | 25 ++----
crowbar_framework/app/models/network_service.rb | 65 +++-----------
crowbar_framework/app/models/network_utils.rb | 59 ++++++++++++
crowbar_framework/test/network_test_helper.rb | 30 +++++--
.../test/unit/attrib_instance_bus_order_test.rb | 35 ++++++++
.../test/unit/attrib_instance_ip_address_test.rb | 55 ++++++++++++
.../test/unit/interface_map_model_test.rb | 35 +++++++-
crowbar_framework/test/unit/network_model_test.rb | 13 ++-
.../test/unit/network_service_test.rb | 88 +-----------------
crowbar_framework/test/unit/network_utils_test.rb | 95 ++++++++++++++++++++
13 files changed, 444 insertions(+), 167 deletions(-)

Crowbar-Pull-ID: fc688ffdeeaf809a3e66a8a50f4197dfcd43c390

Crowbar-Release: development