pub struct Iface {
pub index: u32,
pub kind: String,
pub family: String,
}Expand description
One network interface of a server, as the TERRAFORM door asks for them:
an index and a kind (public · utility · private). The addresses
themselves stay on Server — one public and one utility per machine, from
Addresses — because behaviour 12 is about the ADDRESS pool and not about
how many rows a caller declared.
It exists because upcloud_server declares its interfaces and READS THEM
BACK: holger’s outputs.tf resolves network_interface[0].ip_address and
network_interface[1].ip_address, so a machine that declared one interface
and is answered with two has an output pointing at the wrong wire.
Fields§
§index: u32§kind: String§family: StringBehaviour 61. IPv4 or IPv6, as the interface asked for it.
UpCloud offers IPv6 (price 0); “no IPv6” is this estate’s LAW, not the
provider’s limit. The mock used to answer IPv4 whatever was asked, so a
declaration that broke the law would have passed here unseen.