Network service ,uses a UNIX Domain Socket "/var/run/devicemodel/network.sock" for GRPC communication. protoc generates both client and server instance for this Service. GRPC Status codes : https://developers.google.com/maps-booking/reference/grpc-api/status_codes .
Method Name | Request Type | Response Type | Description |
---|---|---|---|
GetAllInterfaces | .google.protobuf.Empty | NetworkSettings | Returns the settings of all ethernet typed network interfaces |
GetInterfaceWithMac | NetworkInterfaceRequest | Interface | Returns the current setting for the interface, with given MAC address. |
GetInterfaceWithLabel | NetworkInterfaceRequestWithLabel | Interface | Returns the current setting for the interface, with given Label. |
ApplySettings | NetworkSettings | .google.protobuf.Empty | Applies given configurations to Network Interfaces. |