aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-01 17:38:32 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-01 17:38:32 +0100
commit1b9902c5f9e059c8cef0be1a6d83cf665557e2a6 (patch)
tree3300cfd723d57a1e682587f3ea1cdd01e2c51e14 /src/ConfigParser.cpp
parent11fc926de4f80d73effc779e2645d6cc778e6568 (diff)
downloaddabmux-1b9902c5f9e059c8cef0be1a6d83cf665557e2a6.tar.gz
dabmux-1b9902c5f9e059c8cef0be1a6d83cf665557e2a6.tar.bz2
dabmux-1b9902c5f9e059c8cef0be1a6d83cf665557e2a6.zip
Add active linkage set flag to configuration
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp3
1 files changed, 2 insertions, 1 deletions
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<LinkageSet>(setuid, lsn, hard, international);
+ auto linkageset = make_shared<LinkageSet>(setuid, lsn, active, hard, international);
linkageset->keyservice = service_uid; // TODO check if it exists
auto pt_list = pt_set.get_child_optional("list");