Add link-local to ipv6

This commit is contained in:
Ludeeus 2021-06-04 13:24:39 +00:00
parent bdef9fd040
commit 9da2fdced8
3 changed files with 18 additions and 2 deletions

View File

@ -339,6 +339,21 @@ export class DialogHassioNetwork
>
</ha-radio>
</ha-formfield>
${version === "ipv6"
? html` <ha-formfield
.label=${this.supervisor.localize("dialog.network.link-local")}
class="warning"
>
<ha-radio
@change=${this._handleRadioValueChanged}
.version=${version}
value="link-local"
name="${version}method"
.checked=${this._interface![version]?.method === "link-local"}
>
</ha-radio>
</ha-formfield>`
: ""}
</div>
${this._interface![version].method === "static"
? html`
@ -558,7 +573,7 @@ export class DialogHassioNetwork
@media all and (min-width: 451px) and (min-height: 501px) {
.container {
width: 400px;
width: 500px;
}
}

View File

@ -5,7 +5,7 @@ import { hassioApiResultExtractor, HassioResponse } from "./common";
interface IpConfiguration {
address: string[];
gateway: string;
method: "disabled" | "static" | "auto";
method: "disabled" | "static" | "auto" | "link-local";
nameservers: string[];
}

View File

@ -3945,6 +3945,7 @@
"static": "Static",
"dhcp": "DHCP",
"disabled": "Disabled",
"link-local": "link-local",
"ip_netmask": "IP address/Netmask",
"gateway": "Gateway address",
"dns_servers": "DNS Servers",