Add a warning
This commit is contained in:
parent
96d264d15f
commit
39ff53f2ba
@ -1,5 +1,6 @@
|
|||||||
import DeleteIcon from "@mui/icons-material/Delete";
|
import DeleteIcon from "@mui/icons-material/Delete";
|
||||||
import {
|
import {
|
||||||
|
Alert,
|
||||||
Button,
|
Button,
|
||||||
Card,
|
Card,
|
||||||
CardActions,
|
CardActions,
|
||||||
@ -156,6 +157,15 @@ function NatEntryForm(p: {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{p.entry.host_ip.type === "interface" && (
|
{p.entry.host_ip.type === "interface" && (
|
||||||
|
<>
|
||||||
|
{p.editable && (
|
||||||
|
<Alert severity="warning" style={{ margin: "10px 0px" }}>
|
||||||
|
Warning! All IP addresses may not be inferred on reboot due
|
||||||
|
to the fact that the network hook might be executed before
|
||||||
|
the network interfaces are fully configured. This might lead
|
||||||
|
to incomplete ports exposition!
|
||||||
|
</Alert>
|
||||||
|
)}
|
||||||
<SelectInput
|
<SelectInput
|
||||||
{...p}
|
{...p}
|
||||||
label="Network interface"
|
label="Network interface"
|
||||||
@ -171,6 +181,7 @@ function NatEntryForm(p: {
|
|||||||
p.onChange?.();
|
p.onChange?.();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</NATEntryProp>
|
</NATEntryProp>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user