Package io.openems.edge.core.host
Class NetworkConfiguration
java.lang.Object
io.openems.edge.core.host.NetworkConfiguration
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the network interfaces configuration.com.google.gson.JsonObject
toJson()
Return this NetworkConfiguration as a JSON object.
-
Field Details
-
PATTERN_INET4ADDRESS
- See Also:
-
-
Constructor Details
-
NetworkConfiguration
-
-
Method Details
-
toJson
public com.google.gson.JsonObject toJson()Return this NetworkConfiguration as a JSON object.{ "interfaces": { [name: string]: { "dhcp"?: boolean, "linkLocalAddressing"?: boolean, "gateway"?: string, "dns"?: string, "addresses": [{ "label": string, "address": string, "subnetmask": string }] } } }
- Returns:
- this configuration as JSON
-
getInterfaces
Gets the network interfaces configuration.- Returns:
- a map of network interfaces per name
-