Refactor VM provisioning pipeline into focused services and add IP pool

management
This commit is contained in:
baodev0
2026-05-29 12:03:35 +07:00
parent 6bb4a47bfb
commit 7ae237ee9d
32 changed files with 1170 additions and 1200 deletions
+8 -1
View File
@@ -22,7 +22,9 @@ class VirtualMachines extends Model
'is_system',
'last_synced_at',
'datacenter_id',
'host_id'
'host_id',
'ip_pool_id',
'ip',
];
public function datacenter()
@@ -34,4 +36,9 @@ class VirtualMachines extends Model
{
return $this->belongsTo(ModuleHost::class, 'host_id');
}
public function ipPool()
{
return $this->belongsTo(IpPool::class, 'ip_pool_id');
}
}