diff --git a/vmware_nsxlib/tests/unit/v3/policy/test_resources.py b/vmware_nsxlib/tests/unit/v3/policy/test_resources.py index f916a893..0fd1440b 100644 --- a/vmware_nsxlib/tests/unit/v3/policy/test_resources.py +++ b/vmware_nsxlib/tests/unit/v3/policy/test_resources.py @@ -1890,7 +1890,9 @@ class TestPolicyCommunicationMap(NsxPolicyLibTestCase): self.resourceApi.update_entries( domain_id, map_id, entries, tenant=TEST_TENANT) update_call.assert_called_once_with( - domain_id, map_id, entries, tenant=TEST_TENANT) + domain_id, map_id, entries, + category=constants.CATEGORY_APPLICATION, + tenant=TEST_TENANT) def test_update_with_entries(self): domain_id = '111' diff --git a/vmware_nsxlib/v3/policy/core_resources.py b/vmware_nsxlib/v3/policy/core_resources.py index 3c8e32fa..6375d6be 100644 --- a/vmware_nsxlib/v3/policy/core_resources.py +++ b/vmware_nsxlib/v3/policy/core_resources.py @@ -2867,8 +2867,10 @@ class NsxPolicySecurityPolicyBaseApi(NsxPolicyResourceBase): self.policy_api.create_or_update(entry_def) def update_entries(self, domain_id, map_id, entries, + category=constants.CATEGORY_APPLICATION, tenant=constants.POLICY_INFRA_TENANT): - self.update_with_entries(domain_id, map_id, entries, tenant=tenant) + self.update_with_entries(domain_id, map_id, entries, category=category, + tenant=tenant) def update_with_entries(self, domain_id, map_id, entries=IGNORE, name=IGNORE, description=IGNORE,