From f8acd41d2c9cb28ef4a98813f54a7609fe1aec23 Mon Sep 17 00:00:00 2001 From: linb Date: Wed, 18 May 2016 08:21:48 +0800 Subject: [PATCH] Fix distributed router rename error When rename distributed router, we would first GET and then PUT. but PUT would occur errors if we didn't add "type" attribute. So this patch adds it. Change-Id: I85731368244314be1c8a83c97df186c561953d10 --- vmware_nsx/plugins/nsx_v/vshield/edge_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py index b84359ca51..5843d37c62 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py +++ b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py @@ -1692,7 +1692,7 @@ def remove_irrelevant_keys_from_edge_request(edge_request): Having these keys fail the update edge NSX transaction """ for key in ['status', 'datacenterMoid', 'fqdn', 'version', - 'type', 'tenant', 'datacenterName', + 'tenant', 'datacenterName', 'hypervisorAssist', 'universal', 'enableFips']: edge_request.pop(key, None)