Class: OpsManagerUiDrivers::Version17::BoshProductSections::Subnet

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb

Constant Summary collapse

FLASH_MESSAGE_CLASS =
'.flash-message'.freeze
FLASH_MESSAGE_ERRORS =
'.flash-message.error ul.message li'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(browser:, network_form:) ⇒ Subnet

Returns a new instance of Subnet.



8
9
10
11
# File 'lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb', line 8

def initialize(browser:, network_form:)
  @browser = browser
  @bosh_product_form_section = BoshProductFormSection.new(@browser, "#{network_form.field_prefix}[subnets][0]")
end

Instance Method Details

#add_subnet(iaas_identifier:, subnet:, dns:, gateway:, reserved_ip_ranges:) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb', line 13

def add_subnet(iaas_identifier:, subnet:, dns:, gateway:, reserved_ip_ranges:)
  @bosh_product_form_section.set_fields(
    'iaas_identifier' => iaas_identifier,
    'cidr' => subnet,
    'dns' => dns,
    'gateway' => gateway,
    'reserved_ip_ranges' => reserved_ip_ranges,
  )
  @bosh_product_form_section.select_all_az_references_on_page
end