From 07de2cb46175429fe7a556f8533819562db012a5 Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Tue, 12 Jan 2016 23:04:07 +0000 Subject: [PATCH] Fix OS Default FW section apply_tos The OS Default firewall section has apply_tos which is taking index as the target id incorrectly. It should use NSGroup uuid as the target_id. Closes-Bug: #1533390 Change-Id: Ia2569003d3c411fe7ddc656a2a713c48ee9bda5e --- vmware_nsx/nsxlib/v3/security.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/nsxlib/v3/security.py b/vmware_nsx/nsxlib/v3/security.py index 9a5a38f8f8..e0b26afa35 100644 --- a/vmware_nsx/nsxlib/v3/security.py +++ b/vmware_nsx/nsxlib/v3/security.py @@ -210,7 +210,8 @@ def init_nsgroup_manager_and_default_section_rules(): nsgroup_manager = NSGroupManager(cfg.CONF.nsx_v3.number_of_nested_groups) section_id = _init_default_section( - DEFAULT_SECTION, section_description, nsgroup_manager.nested_groups) + DEFAULT_SECTION, section_description, + nsgroup_manager.nested_groups.values()) return nsgroup_manager, section_id