This patch set adds a capability to mesh-cfgclient to generate and store virtual labels and use them in configuring remote node's publications and subscriptions. Regular group addresses are preeserved as well. This is done dynamically: as a new group address is detected in either subscription or publication configuration commands. This new capability of mesh-cfgclient allowed for improved testing of virtual pub/sub implementation in bluetooth-meshd daemon. As a result, some deficiencies and legacy entaglements were exposed, and consequently resolved and cleaned up. Inga Stotland (4): tools/mesh-cfgclient: Add support for virtual labels tools/mesh-cfgclient: Save and restore group addresses mesh: Simplify model virtual pub/sub logic mesh: Clean up handling config model publication message Makefile.tools | 3 +- mesh/cfgmod-server.c | 131 ++++++++-------------- mesh/model.c | 258 +++++++++++++++++-------------------------- mesh/model.h | 9 +- tools/mesh/cfgcli.c | 206 +++++++++++++++++++++++++++++++--- tools/mesh/cfgcli.h | 6 + tools/mesh/mesh-db.c | 123 +++++++++++++++++++++ tools/mesh/mesh-db.h | 3 + 8 files changed, 471 insertions(+), 268 deletions(-) -- 2.21.1