class Bosh::Director::DeploymentPlan::Network

Represents a logical deployment network.

Constants

VALID_DEFAULTS

Attributes

canonical_name[RW]

@return [String] canonical network name

name[RW]

@return [String] network name

Public Class Methods

new(name, logger) click to toggle source

Creates a new network.

@param [DeploymentPlan] deployment associated deployment plan @param [Hash] network_spec parsed deployment manifest network section

# File lib/bosh/director/deployment_plan/network.rb, line 23
def initialize(name, logger)
  @name = name
  @canonical_name = Canonicalizer.canonicalize(@name)
  @logger = logger
end

Public Instance Methods

find_az_names_for_ip(ip) click to toggle source
# File lib/bosh/director/deployment_plan/network.rb, line 44
def find_az_names_for_ip(ip)
  raise NotImplementedError
end
has_azs?(az_names) click to toggle source
# File lib/bosh/director/deployment_plan/network.rb, line 40
def has_azs?(az_names)
  raise NotImplementedError
end
manual?() click to toggle source
# File lib/bosh/director/deployment_plan/network.rb, line 55
def manual?
  false
end
network_settings(reservation, default_properties = VALID_DEFAULTS, availability_zone = nil) click to toggle source

Returns the network settings for the specific reservation.

@param [NetworkReservation] reservation @param [Array<String>] default_properties @return [Hash] network settings that will be passed to the BOSH Agent

# File lib/bosh/director/deployment_plan/network.rb, line 35
def network_settings(reservation, default_properties = VALID_DEFAULTS, availability_zone = nil)
  raise NotImplementedError,
        "#network_settings not implemented for #{self.class}"
end
supports_azs?() click to toggle source
# File lib/bosh/director/deployment_plan/network.rb, line 51
def supports_azs?
  false
end
validate_reference_from_job!(job_network_spec, job_name) click to toggle source
# File lib/bosh/director/deployment_plan/network.rb, line 48
def validate_reference_from_job!(job_network_spec, job_name)
end