From 1841342649a32fd945001474458dd43596721438 Mon Sep 17 00:00:00 2001 From: Varun Lodaya Date: Mon, 3 Aug 2015 09:44:41 -0700 Subject: [PATCH] Allow custom configs with LBaaS This fix enables a new field "custom-attr" in loadbalancer_pool properties in the schema. Change-Id: I17eecc2fedea4d1d3889b7e114e99732ac2eecc9 Closes-Bug: #1475393 Allow custom configs with LBaaS This fix commits the vrouter agent code to read the custom_attributes from ifmap node and copy it to config.json file which the haproxy parser would read. Added missing '}'. Incorporating the comments Closes-Bug: #1475393 Change-Id: I6f22f4f537c97c48b2283971b2959c9be5931361 Conflicts: src/vnsw/agent/oper/loadbalancer.cc src/vnsw/agent/oper/loadbalancer_config.cc src/vnsw/agent/oper/loadbalancer_config.h Change-Id: Iea0aff5589a21e3c802e4e63633a1d74f22cdeaf --- src/schema/loadbalancer.xsd | 4 + src/vnsw/agent/oper/loadbalancer.cc | 2 +- src/vnsw/agent/oper/loadbalancer_config.cc | 169 ++++++++++++++++++ src/vnsw/agent/oper/loadbalancer_config.h | 38 ++++ .../agent/oper/loadbalancer_properties.cc | 50 ++++++ src/vnsw/agent/oper/loadbalancer_properties.h | 9 + 6 files changed, 271 insertions(+), 1 deletion(-) create mode 100644 src/vnsw/agent/oper/loadbalancer_config.cc create mode 100644 src/vnsw/agent/oper/loadbalancer_config.h diff --git a/src/schema/loadbalancer.xsd b/src/schema/loadbalancer.xsd index 69912580cbd..7a974f18109 100644 --- a/src/schema/loadbalancer.xsd +++ b/src/schema/loadbalancer.xsd @@ -85,6 +85,10 @@ Link('loadbalancer-pool-service-appliance-set', 'loadbalancer-pool', 'service-appliance-set', ['ref']) --> + + +