director/lib/director/deployment_plan/vip_network.rb
##
# 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
Returns the network settings for the specific reservation.
Returns the network settings for the specific reservation .
def network_settings(reservation, default_properties = VALID_DEFAULTS)
        if default_properties && !default_properties.empty?
          raise NetworkReservationVipDefaultProvided,
                "Can't provide any defaults since this is a VIP network"
        end
        {
          "type" => "vip",
          "ip" => ip_to_netaddr(reservation.ip).ip,
          "cloud_properties" => @cloud_properties
        }
      end
def network_settings ( reservation , default_properties = VALID_DEFAULTS ) if default_properties && ! default_properties . empty? raise NetworkReservationVipDefaultProvided , "Can't provide any defaults since this is a VIP network" end { "type" => "vip" , "ip" => ip_to_netaddr ( reservation . ip ) . ip , "cloud_properties" => @cloud_properties } end
Returns the network settings for the specific reservation.
Returns the network settings for the specific reservation .
network settings that will be passed to the BOSH Agent
network settings that will be passed to the BOSH Agent
Hash
reservation
default_properties
None