NSX|P: Remove redundent logs when updating fwaas groups

Change-Id: Ia814adae63c76c1e54c55ba98ea51a4d569eeeb1
This commit is contained in:
asarfaty 2020-06-16 09:35:26 +02:00 committed by Adit Sarfaty
parent ec2b996e39
commit 81e8d46453
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ class NsxpFwaasCallbacksV2(com_callbacks.NsxCommonv3FwaasCallbacksV2):
"""Update the segment group for fwaas rules in case fip changed"""
try:
group_id = '%s-%s' % (router_id, neutron_net_id)
self.nsxpolicy.group.get(policy_constants.DEFAULT_DOMAIN, group_id)
self.nsxpolicy.group.get(policy_constants.DEFAULT_DOMAIN, group_id,
silent=True)
except Exception:
# no relevant group needs to be updated
return