@Beta public interface DeviceConfigOperator extends ConfigOperator
ConfigOperator
for Device.
Note: We currently assume DeviceConfigOperator
s are commutative.
Modifier and Type | Method and Description |
---|---|
void |
bindService(NetworkConfigService networkConfigService)
Binds
NetworkConfigService to use for retrieving configuration. |
DeviceDescription |
combine(DeviceId deviceId,
DeviceDescription descr,
Optional<Config> prevConfig)
Generates a DeviceDescription containing fields from a DeviceDescription and
configuration.
|
void bindService(NetworkConfigService networkConfigService)
NetworkConfigService
to use for retrieving configuration.networkConfigService
- the service to useDeviceDescription combine(DeviceId deviceId, DeviceDescription descr, Optional<Config> prevConfig)
deviceId
- DeviceId
representing the port.descr
- input DeviceDescription
prevConfig
- previous config Config
DeviceDescription