mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-24 18:51:44 +01:00
New master after taking over a switch was pushing again the pipeline and all the flows and groups. This was happening because DefaultPiPipeconf fingerprint was not calculated in a deterministic way across the cluster. This patch introduces the following changes: - Implements toString method in each abstraction representing a pipeline - Hashes the p4Info file to generate a consistent hash of the pipeline model - Uses a sorted collection to generate a consistent hash of the extensions Change-Id: I792283b0a9b821284add36b3aba52843f33527c3