andre 4 лет назад
Родитель
Сommit
887152a5d6

+ 2 - 16
app/UI/VmUpdate/Providers/VmUpdateProvider.php

@@ -89,8 +89,6 @@ class VmUpdateProvider extends VmCreateProvider
                 }
             }
             $this->availableValues['bootOrder0'] = $options;
-            $this->availableValues['bootOrder1'] = $options;
-            $this->availableValues['bootOrder2'] = $options;
         }
         //sshkeys
         $this->data['sshkeys'] = rawurldecode($vm->config()['sshkeys']);
@@ -204,18 +202,6 @@ class VmUpdateProvider extends VmCreateProvider
             if($this->configuration()->isLxc()){
                 fire(new LxcUpdateEvent($this->vmModel, $this->formData));
             }
-            if ($this->configuration()->isDetailsCombinedView()) {
-                //virtual interfaces
-                $this->virtualNetworkUpdate();
-                //IP Set
-                if ($this->configuration()->isIpsetIpFilter()){
-                    $ipSetFilterService =  new IpSetIpFilterService();
-                    $ipSetFilterService->create();
-                }
-                //disks
-                $this->disksUpdate();
-
-            }
             $agentEnabled = (new AgentService())->isEnabled();
             if($agentEnabled && $this->configuration()->isAgentConfigureNetwork()){
                 queue(ConfigureNetworkJob::class,
@@ -251,7 +237,7 @@ class VmUpdateProvider extends VmCreateProvider
 
     }
 
-    private function virtualNetworkUpdate()
+/*    private function virtualNetworkUpdate()
     {
         try {
 
@@ -361,6 +347,6 @@ class VmUpdateProvider extends VmCreateProvider
         $vmModel->save();
 
     }
-
+*/
 
 }

+ 1 - 1
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -159,7 +159,7 @@ class GeneralSection extends BaseSection
             $field->setDescription('description');
             $this->addField($field);
         }
-        //boot device 1
+        //boot device
         $field = new Select("bootOrder0");
         $field->notEmpty();
         $this->addField($field);