crowbar/barclamp-network — pull request #146 by cdearborn (2013-02-27 21:00:52+00:00)
Title: Epic refactor of network barclamp [2/2]

This pull request includes:

- Conversion of the network barclamp to a Rails Engine and all of the corresponding namespacing changes
- Rename of BarclampConfig, BarclampInstance, AttribInstance, Attrib, RoleInstance, Role fan out
- Removal of Crowbar 1.0 proposal and service objects
- Any odds and ends necessary to get the network barclamp unit tests fully functional

bin/crowbar_network | 56 +--
crowbar_engine/barclamp_network/Gemfile.lock | 98 ----
.../barclamp_network/networks_controller.rb | 24 +-
.../barclamp_network/allocated_ip_address.rb | 4 +-
.../models/barclamp_network/attrib_bus_order.rb | 45 ++
.../barclamp_network/attrib_instance_bus_order.rb | 45 --
.../barclamp_network/attrib_instance_ip_address.rb | 56 ---
.../models/barclamp_network/attrib_ip_address.rb | 60 +++
.../app/models/barclamp_network/barclamp.rb | 213 ++++----
.../app/models/barclamp_network/bond.rb | 2 +-
.../app/models/barclamp_network/bus.rb | 2 +-
.../app/models/barclamp_network/bus_map.rb | 4 +-
.../app/models/barclamp_network/conduit.rb | 16 +-
.../app/models/barclamp_network/conduit_action.rb | 2 +-
.../app/models/barclamp_network/conduit_filter.rb | 2 +-
.../app/models/barclamp_network/conduit_rule.rb | 12 +-
.../app/models/barclamp_network/interface.rb | 6 +-
.../app/models/barclamp_network/interface_map.rb | 8 +-
.../models/barclamp_network/interface_selector.rb | 4 +-
.../app/models/barclamp_network/ip_address.rb | 3 +-
.../app/models/barclamp_network/ip_range.rb | 6 +-
.../app/models/barclamp_network/network.rb | 52 +-
.../models/barclamp_network/network_mode_filter.rb | 4 +-
.../app/models/barclamp_network/network_utils.rb | 38 +-
.../models/barclamp_network/physical_interface.rb | 2 +-
.../app/models/barclamp_network/role_filter.rb | 6 +-
.../app/models/barclamp_network/router.rb | 4 +-
.../app/models/barclamp_network/selector.rb | 2 +-
.../app/models/barclamp_network/vlan.rb | 4 +-
.../app/models/barclamp_network/vlan_interface.rb | 4 +-
.../db/migrate/20120730175122_create_networks.rb | 4 +-
.../db/migrate/20120730175238_create_interfaces.rb | 2 +-
.../migrate/20120730175255_create_ip_addresses.rb | 2 +-
.../db/migrate/20120821194639_create_conduits.rb | 4 +-
.../db/migrate/20120822201408_create_routers.rb | 2 +-
.../db/migrate/20120827150258_create_ip_ranges.rb | 2 +-
.../db/migrate/20120914175602_create_buses.rb | 2 +-
.../db/migrate/20120914175721_create_bus_maps.rb | 2 +-
.../20120914175733_create_interface_maps.rb | 4 +-
.../20120918205152_create_interface_selectors.rb | 2 +-
.../20120918205303_create_conduit_filters.rb | 2 +-
.../20120919110841_create_conduit_actions.rb | 2 +-
.../migrate/20120919190544_create_conduit_rules.rb | 2 +-
.../db/migrate/20121214183538_create_vlans.rb | 2 +-
.../db/migrate/20130112145100_create_selectors.rb | 2 +-
...20130115220245_create_allocated_ip_addresses.rb | 4 +-
.../20130123083500_create_interfaces_networks.rb | 4 +-
.../barclamp_network/lib/barclamp_network.rb | 3 +
.../lib/barclamp_network/engine.rb | 2 +-
.../barclamp_network/test/network_test_helper.rb | 81 +--
.../test/unit/allocated_ip_address_model.rb | 65 ++-
.../test/unit/attrib_bus_order_test.rb | 38 ++
.../test/unit/attrib_instance_bus_order_test.rb | 35 --
.../test/unit/attrib_instance_ip_address_test.rb | 55 ---
.../test/unit/attrib_ip_address_test.rb | 61 +++
.../barclamp_network/test/unit/barclamp_test.rb | 501 -------------------
.../barclamp_network/test/unit/bond_model_test.rb | 30 +-
.../test/unit/bus_map_model_test.rb | 6 +-
.../barclamp_network/test/unit/bus_model_test.rb | 6 +-
.../test/unit/conduit_action_test.rb | 2 +-
.../test/unit/conduit_rule_test.rb | 97 ++--
.../barclamp_network/test/unit/conduit_test.rb | 214 ++++----
.../barclamp_network/test/unit/create_bond_test.rb | 8 +-
.../test/unit/interface_map_model_test.rb | 28 +-
.../test/unit/interface_model_test.rb | 15 +-
.../test/unit/interface_selector_test.rb | 30 +-
.../test/unit/ip_address_model_test.rb | 20 +-
.../test/unit/ip_range_model_test.rb | 18 +-
.../test/unit/network_barclamp_test.rb | 522 ++++++++++++++++++++
.../test/unit/network_mode_filter_test.rb | 4 +-
.../test/unit/network_model_test.rb | 148 ++++--
.../test/unit/network_utils_test.rb | 77 +--
.../test/unit/node_attribute_filter_test.rb | 4 +-
.../barclamp_network/test/unit/role_filter_test.rb | 20 +-
.../test/unit/router_model_test.rb | 12 +-
.../test/unit/select_by_index_test.rb | 6 +-
.../test/unit/select_by_speed_test.rb | 10 +-
.../barclamp_network/test/unit/selector_test.rb | 2 +-
.../barclamp_network/test/unit/vlan_model_test.rb | 10 +-
79 files changed, 1534 insertions(+), 1424 deletions(-)

Crowbar-Pull-ID: fd8b6516ed91645f2acb1ca198501df1597d772e

Crowbar-Release: development