From ed4bb0d7a8f13e963154f8e6898c8433788e4c8a Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 13 Aug 2017 04:22:26 +0300 Subject: [PATCH] NSX|V: ensure the allowed logging includes default DHCP rules Only the blocked logging was updated and not the allowed traffic. Change-Id: I69d7e8d52b781e8f3d17b100ac78494ce375ab0f --- vmware_nsx/plugins/nsx_v/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index f45b7dbfb9..f9a5b79736 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -481,7 +481,8 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, for rule in rules: rule_config = self.nsx_sg_utils.get_rule_config( applied_to_ids, rule['name'], rule['action'], - applied_to_type, services=rule['services']) + applied_to_type, services=rule['services'], + logged=cfg.CONF.nsxv.log_security_groups_allowed_traffic) rule_list.append(rule_config) # Default security-group rules