Class NetworkConfiguration

java.lang.Object
io.openems.edge.core.host.NetworkConfiguration

public class NetworkConfiguration extends Object
  • Field Details

  • Constructor Details

  • 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

      public TreeMap<String,NetworkInterface<?>> getInterfaces()
      Gets the network interfaces configuration.
      Returns:
      a map of network interfaces per name