diff options
| author | root <root@eng-140.vyatta.com> | 2008-08-22 12:24:26 -0700 |
|---|---|---|
| committer | root <root@eng-140.vyatta.com> | 2008-08-22 12:24:26 -0700 |
| commit | 8237284fe73cc722ad58ebdc47838f7fd4a969d7 (patch) | |
| tree | 2cb83da5b98a4ddf58bf19732aee02c1f6bd3547 /src | |
| parent | d7e0e1579b84215eee801e0e033c0b60eb09a1c8 (diff) | |
| download | vyatta-wanloadbalance-8237284fe73cc722ad58ebdc47838f7fd4a969d7.tar.gz vyatta-wanloadbalance-8237284fe73cc722ad58ebdc47838f7fd4a969d7.zip | |
fixed bug in parsing multiple rule sets
Diffstat (limited to 'src')
| -rw-r--r-- | src/lbdatafactory.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index 5e3da83..bc7d4bc 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -77,6 +77,7 @@ LBDataFactory::load(const string &conf_file) ++depth; } else if (symbol == "}") { + path[depth] = string(""); --depth; } } @@ -116,6 +117,7 @@ LBDataFactory::process(const vector<string> &path, int depth, const string &key, static_cast < int(*)(int) > (std::tolower)); std::transform(value.begin(), value.end(), std::back_inserter(l_value), static_cast < int(*)(int) > (std::tolower)); + if (path[0] == "health") { if (l_key == "interface") { process_health(l_key,l_value); |
