diff options
Diffstat (limited to 'src/lbdatafactory.cc')
| -rw-r--r-- | src/lbdatafactory.cc | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index 9729e62..682b0b4 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -157,6 +157,9 @@ LBDataFactory::process(const vector<string> &path, int depth, const string &key,    else if (path[0] == "hook") {      process_hook(l_key,l_value);    } +  else if (path[0] == "post-hook") { +    process_post_hook(l_key,l_value); +  }    else if (path[0] == "health") {      if (depth == 2 && key == "interface") {        process_health(l_key,l_value); @@ -250,6 +253,14 @@ LBDataFactory::process_hook(const string &key, const string &value)  }  void +LBDataFactory::process_post_hook(const string &key, const string &value) +{ +  if (value.empty() == false) { +    _lb_data._post_hook = value; +  } +} + +void  LBDataFactory::process_health(const string &key, const string &value)   {    if (value.empty() == false) {  | 
