Sha256: a5a10db05c7afdfdee09f810cb80c2629d8095f9f91689018f8268a4c7e4cb22

Contents?: true

Size: 890 Bytes

Versions: 23

Compression:

Stored size: 890 Bytes

Contents

module OpsManagerUiDrivers
  module Version17
    module BoshProductSections
      class Subnet
        FLASH_MESSAGE_CLASS = '.flash-message'.freeze
        FLASH_MESSAGE_ERRORS = '.flash-message.error ul.message li'.freeze

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

        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
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-1.28.1 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.28.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.27.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.26.1 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.26.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.25.1 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.25.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.24.4 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.24.3 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.24.2 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.24.1 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.24.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.23.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.22.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.21.1 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.21.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.20.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.19.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.18.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb
ops_manager_ui_drivers-1.17.0 lib/ops_manager_ui_drivers/version17/bosh_product_sections/subnet.rb