Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSGroup.update() errors, WAPI returns "Field is not allowed for update: is_multimaster" #386

Open
pieterlexis-tomtom opened this issue Dec 4, 2024 · 0 comments

Comments

@pieterlexis-tomtom
Copy link

I'm using version 0.6.0 of the connector to update an NSGroup (adding a grid secondary). However, when I call .update() on the NSGroup object, the WAPI (version 2.13.5, from NIOS 9.0.5) responds with HTTP 400 with this error:

{
   "Error": "AdmConProtoError: Field is not allowed for update: is_multimaster",
   "code": "Client.Ibap.Proto",
   "text": "Field is not allowed for update: is_multimaster"
}

I managed to fix this issue in the client by applying this patch:

diff --git infoblox_client/objects.py infoblox_client/objects.py
index 5d7f12f..06ec899 100644
--- infoblox_client/objects.py
+++ infoblox_client/objects.py
@@ -12946,7 +12946,7 @@ class Nsgroup(InfobloxObject):
                'external_secondaries', 'grid_primary', 'grid_secondaries',
                'is_grid_default', 'is_multimaster', 'name',
                'use_external_primary']
-    _search_for_update_fields = ['name']
+    _search_for_update_fields = ['name', 'is_multimaster']
     _updateable_search_fields = ['comment', 'name']
     _all_searchable_fields = ['comment', 'name']
     _return_fields = ['comment', 'extattrs', 'name']
pieterlexis-tomtom added a commit to pieterlexis-tomtom/infoblox-client that referenced this issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant