@@ -193,6 +193,8 @@ class BridgeForm(View):
193193 # Compute resource attributes
194194 network_type = FilteredDropdown (id = '_compute_attributes_type' )
195195 network = FilteredDropdown (id = '_compute_attributes_bridge' )
196+ ocpv_network = FilteredDropdown (id = '_compute_attributes_network' )
197+ cni_provider = FilteredDropdown (id = '_compute_attributes_cni_provider' )
196198 nic_type = FilteredDropdown (id = '_compute_attributes_model' )
197199
198200 def after_fill (self , was_change ):
@@ -391,6 +393,36 @@ class operating_system(SatTab):
391393 image = FilteredDropdown (id = 'azure_rm_image_id' )
392394 root_password = TextInput (id = 'host_root_pass' )
393395
396+ @provider_content .register ('OpenShift Virtualization' )
397+ class OCPVResourceForm (View ):
398+ @View .nested
399+ class virtual_machine (SatTab ):
400+ TAB_NAME = 'Virtual Machine'
401+ cpus = TextInput (id = 'host_compute_attributes_cpu_cores' )
402+ memory = TextInput (id = 'host_compute_attributes_memory' )
403+ startup = Checkbox (id = 'host_compute_attributes_start' )
404+
405+ @View .nested
406+ class storage (SatTab ):
407+ TAB_NAME = 'Virtual Machine'
408+ add_volume = Text ("//a[@class = 'info add_nested_fields btn btn-primary']" )
409+ storage_volumes = (
410+ ".//fieldset[@id='storage_volumes']/div/div[contains(@class,'removable-item')]"
411+ )
412+ storage_class = FilteredDropdown (locator = storage_volumes )
413+ size = TextInput (locator = f"{ storage_volumes } //input[contains(@id, 'capacity')]" )
414+ bootable = Checkbox (
415+ locator = f"{ storage_volumes } //div[3]//input[contains(@onclick, 'bootableRadio(this)')]"
416+ )
417+
418+ def before_fill (self , values = None ):
419+ self .add_volume .click ()
420+
421+ @View .nested
422+ class operating_system (SatTab ):
423+ TAB_NAME = 'Operating System'
424+ provision_method = Checkbox (id = 'host_provision_method_image' )
425+
394426 @View .nested
395427 class operating_system (SatTab ):
396428 TAB_NAME = 'Operating System'
0 commit comments