From 1b9902c5f9e059c8cef0be1a6d83cf665557e2a6 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 1 Mar 2018 17:38:32 +0100 Subject: Add active linkage set flag to configuration --- src/ConfigParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index e9fe91d..544f89c 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -99,6 +99,7 @@ static void parse_linkage(ptree& pt, throw runtime_error("Invalid service linking definition"); } + bool active = pt_set.get("active", true); bool hard = pt_set.get("hard", true); bool international = pt_set.get("international", false); @@ -109,7 +110,7 @@ static void parse_linkage(ptree& pt, throw runtime_error("Invalid service linking definition"); } - auto linkageset = make_shared(setuid, lsn, hard, international); + auto linkageset = make_shared(setuid, lsn, active, hard, international); linkageset->keyservice = service_uid; // TODO check if it exists auto pt_list = pt_set.get_child_optional("list"); -- cgit v1.2.3