mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-05 10:39:45 +00:00
Add configure base mac address for Docker templates
This commit is contained in:
parent
323255286b
commit
fc66124ea9
@ -59,6 +59,15 @@
|
|||||||
placeholder="Start command"
|
placeholder="Start command"
|
||||||
/>
|
/>
|
||||||
</mat-form-field>
|
</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">
|
<mat-form-field class="form-field">
|
||||||
<input
|
<input
|
||||||
formControlName="adapter"
|
formControlName="adapter"
|
||||||
|
@ -10,6 +10,7 @@ export class DockerTemplate {
|
|||||||
console_http_port: number;
|
console_http_port: number;
|
||||||
console_resolution: string;
|
console_resolution: string;
|
||||||
console_type: string;
|
console_type: string;
|
||||||
|
mac_address: string;
|
||||||
custom_adapters: CustomAdapter[];
|
custom_adapters: CustomAdapter[];
|
||||||
default_name_format: string;
|
default_name_format: string;
|
||||||
environment: string;
|
environment: string;
|
||||||
|
@ -256,6 +256,7 @@ export class TemplateMocksService {
|
|||||||
console_http_port: 80,
|
console_http_port: 80,
|
||||||
console_resolution: '1024x768',
|
console_resolution: '1024x768',
|
||||||
console_type: 'telnet',
|
console_type: 'telnet',
|
||||||
|
mac_address: '',
|
||||||
custom_adapters: [],
|
custom_adapters: [],
|
||||||
default_name_format: '{name}-{0}',
|
default_name_format: '{name}-{0}',
|
||||||
environment: '',
|
environment: '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user