Class: Bosh::Director::DeploymentPlan::PlacementPlanner::BruteForceIpAllocation
- Inherits:
-
Object
- Object
- Bosh::Director::DeploymentPlan::PlacementPlanner::BruteForceIpAllocation
- Defined in:
- lib/bosh/director/deployment_plan/placement_planner/bruteforce_ip_allocation.rb
Defined Under Namespace
Classes: AllocatedIps, PreviousAssignment
Instance Method Summary collapse
- #find_best_combination ⇒ Object
-
#initialize(networks_to_static_ips) ⇒ BruteForceIpAllocation
constructor
A new instance of BruteForceIpAllocation.
Constructor Details
#initialize(networks_to_static_ips) ⇒ BruteForceIpAllocation
Returns a new instance of BruteForceIpAllocation.
8 9 10 |
# File 'lib/bosh/director/deployment_plan/placement_planner/bruteforce_ip_allocation.rb', line 8 def initialize(networks_to_static_ips) @networks_to_static_ips = networks_to_static_ips end |
Instance Method Details
#find_best_combination ⇒ Object
12 13 14 15 |
# File 'lib/bosh/director/deployment_plan/placement_planner/bruteforce_ip_allocation.rb', line 12 def find_best_combination allocated_ips = AllocatedIps.new try_combination(@networks_to_static_ips, allocated_ips) end |