summaryrefslogtreecommitdiff
path: root/src/lbdatafactory.cc
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-02-05 16:13:28 -0800
committerMichael Larson <slioch@eng-140.vyatta.com>2008-02-05 16:13:28 -0800
commitfeaee77ba7c7003bac53c4858eab26ac339e6aa8 (patch)
treee138ef78aa6423976739084db89f68b67f6ecf35 /src/lbdatafactory.cc
parentf350c6bdc9d1fba54fc695039341c87eb50b573a (diff)
downloadvyatta-wanloadbalance-feaee77ba7c7003bac53c4858eab26ac339e6aa8.tar.gz
vyatta-wanloadbalance-feaee77ba7c7003bac53c4858eab26ac339e6aa8.zip
changed port definition to be consistent with fw/nat (i.e. single port line allow multi-port configuration). init script fix
Diffstat (limited to 'src/lbdatafactory.cc')
-rw-r--r--src/lbdatafactory.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index d422c95..15322a9 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -290,11 +290,8 @@ LBDataFactory::process_rule_source(const string &key, const string &value)
else if (key == "network") {
_rule_iter->second._s_net = value;
}
- else if (key == "port-name") {
- _rule_iter->second._s_port_name = value;
- }
- else if (key == "port-number") {
- _rule_iter->second._s_port_num = value;
+ else if (key == "port") {
+ _rule_iter->second._s_port = value;
}
}
@@ -314,11 +311,8 @@ LBDataFactory::process_rule_destination(const string &key, const string &value)
else if (key == "network") {
_rule_iter->second._d_net = value;
}
- else if (key == "port-name") {
- _rule_iter->second._d_port_name = value;
- }
- else if (key == "port-number") {
- _rule_iter->second._d_port_num = value;
+ else if (key == "port") {
+ _rule_iter->second._d_port = value;
}
}