@Beta public interface PortConfigOperator extends ConfigOperator
ConfigOperator
for Port.
Note: We currently assumes PortConfigOperator
s are commutative.
Modifier and Type | Method and Description |
---|---|
void |
bindService(NetworkConfigService networkConfigService)
Binds
NetworkConfigService to use for retrieving configuration. |
PortDescription |
combine(ConnectPoint cp,
PortDescription descr)
Generates a PortDescription containing fields from a PortDescription and
configuration.
|
default PortDescription |
combine(DeviceId did,
PortDescription descr)
Generates a PortDescription containing fields from a PortDescription and
configuration.
|
void bindService(NetworkConfigService networkConfigService)
NetworkConfigService
to use for retrieving configuration.networkConfigService
- the service to usePortDescription combine(ConnectPoint cp, PortDescription descr)
cp
- ConnectPoint
representing the port.descr
- input PortDescription
PortDescription
default PortDescription combine(DeviceId did, PortDescription descr)
did
- DeviceId which the port described by descr
resides.descr
- input PortDescription
PortDescription