Refactor VM provisioning pipeline into focused services and add IP pool
management
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user