Add configure base mac address for Docker templates

This commit is contained in:
grossmj 2024-09-18 17:09:25 +07:00
parent 323255286b
commit fc66124ea9
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD
3 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,15 @@
placeholder="Start command"
/>
</mat-form-field>
<mat-form-field class="form-field">
<input
matInput
type="text"
[ngModelOptions]="{ standalone: true }"
[(ngModel)]="dockerTemplate.mac_address"
placeholder="Base MAC"
/>
</mat-form-field>
<mat-form-field class="form-field">
<input
formControlName="adapter"

View File

@ -10,6 +10,7 @@ export class DockerTemplate {
console_http_port: number;
console_resolution: string;
console_type: string;
mac_address: string;
custom_adapters: CustomAdapter[];
default_name_format: string;
environment: string;

View File

@ -256,6 +256,7 @@ export class TemplateMocksService {
console_http_port: 80,
console_resolution: '1024x768',
console_type: 'telnet',
mac_address: '',
custom_adapters: [],
default_name_format: '{name}-{0}',
environment: '',