mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
Add debug log in P4RuntimePipelineConfigClient
Change-Id: Ie71af2f80b12b8ad99c8f597af1c3f026a532c4b
This commit is contained in:
parent
48103846ec
commit
730d546f05
@ -166,16 +166,20 @@ final class PipelineConfigClientImpl implements P4RuntimePipelineConfigClient {
|
||||
private boolean comparePipelineConfig(
|
||||
PiPipeconf pipeconf, ForwardingPipelineConfig cfgFromDevice) {
|
||||
if (cfgFromDevice == null) {
|
||||
log.debug("Failed to comparePipelineConfig. cfgFromDevice is null");
|
||||
return false;
|
||||
}
|
||||
|
||||
final ForwardingPipelineConfig expectedCfg = buildForwardingPipelineConfigMsg(
|
||||
pipeconf, null);
|
||||
if (expectedCfg == null) {
|
||||
// Problem logged by buildForwardingPipelineConfigMsg
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cfgFromDevice.hasCookie()) {
|
||||
log.debug("Cookie from device = {}", cfgFromDevice.getCookie().getCookie());
|
||||
log.debug("Pipeconf fingerprint = {}", pipeconf.fingerprint());
|
||||
return cfgFromDevice.getCookie().getCookie() == pipeconf.fingerprint();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user