From d6d4f638118869e9e572b8a5e2815404bf38f834 Mon Sep 17 00:00:00 2001 From: Yuvaraja Mariappan Date: Sun, 10 Jul 2016 10:07:24 -0700 Subject: [PATCH] name update is handled. with this fix name update can be done for lbaasv1 vip and lbaas v2 loadbalancer/listener/pool Change-Id: I3de6e159f532d8e5e2c4fc886e2df51a79633d91 Closes-bug: 1376117 --- .../plugins/opencontrail/loadbalancer/resource_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/resource_manager.py b/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/resource_manager.py index 41f3c94..12cf710 100644 --- a/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/resource_manager.py +++ b/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/resource_manager.py @@ -291,6 +291,10 @@ def update(self, context, id, resource): obj.set_id_perms(id_perms) update = True + if 'name' in r and r['name'] != obj.get_display_name(): + obj.set_display_name(r['name']) + update = True + if self.update_properties(obj, id, r): update = True if self.update_object(obj, id, r):