Skip to content

Commit

Permalink
Add configure base mac address for Docker templates
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Sep 18, 2024
1 parent 3232552 commit fc66124
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ <h1 class="col">Docker image configuration</h1>
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"
Expand Down
1 change: 1 addition & 0 deletions src/app/models/templates/docker-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/app/services/template-mocks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit fc66124

Please sign in to comment.