NSX|V: ensure the allowed logging includes default DHCP rules

Only the blocked logging was updated and not the allowed traffic.

Change-Id: I69d7e8d52b781e8f3d17b100ac78494ce375ab0f
This commit is contained in:
Gary Kotton 2017-08-13 04:22:26 +03:00 committed by Adit Sarfaty
parent 4bc0cef838
commit ed4bb0d7a8

View File

@ -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