-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add Infoblox NetworkView support, implement data load filtering, add DNS and fixed address records. #442
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some things I noticed and issues to address. Thanks for submitting this! Also, can you ensure we get test fixtures for all the new API calls and also update any existing that are missing data, like for IPv6 addresses?
nautobot_ssot/integrations/infoblox/diffsync/adapters/infoblox.py
Outdated
Show resolved
Hide resolved
nautobot_ssot/integrations/infoblox/diffsync/adapters/infoblox.py
Outdated
Show resolved
Hide resolved
This should close #171. |
- Add custom exception raised when loading fails. - Fix prefix/ip address filtering bug. - Get config from the SSOTInfobloxConfig object. - Add excluded attributes logic.
- Add support for adding IP as a/ptr record. - Fix bug in loading filtered prefixes/ip addresses.
- Don't allow changes to Network View in Infoblox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think we mostly just need some documentation added around some of these changes and the tests fixed and we should be g2g.
Fix tests
Create relationships for Nautobot model tests.
Create relationships for IPAddress tests.
Add missing import_subnets field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few more tweaks but looks good overall.
Update docs as per the PR review.
Only retrieve FORWARD zones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very small nitpicks! Super awesome work Przemek. You're the man!
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
Added
Config
. This field specifies which Infoblox Config to use with the job.mac_address
,fixed_address_comment
,dns_a_record_comment
,dns_host_record_comment
,dns_ptr_record_comment
.Changed
Infoblox integration - configuration is no longer defined in
nautobot_config.py
. Configuration is now defined in the SSOT Infoblox Config object. This can be set up in UI or using Django ORM.nautobot_config.py
will be automatically migrated to the SSOT Infoblox Config object namedInfobloxConfigDefault
.DefaultInfobloxInstance
.NAUTOBOT_SSOT_INFOBLOX_USERNAME
env var and the password to come from theNAUTOBOT_SSOT_INFOBLOX_PASSWORD
env var. To use a different method of providing credentials modify secrets attached to theInfobloxSSOTDefaultSecretGroup
SecretsGroup.Default behavior when loading prefixes has changed. Previously all prefixes from all Infoblox network views were loaded by default, with duplicate prefixes removed. This process was non-deterministic and resulted in all Infoblox prefixes assigned to the "Global" namespace in Nautobot. Infoblox integration now enforces the use of the
infoblox_sync_filters
setting, defined in the Infoblox Config, with the default value set to[{"network_view": "default"}]
. This default setting results in loading all of the prefixes from the Infoblox network view "default" only and assigning them to the "Global" namespace in Infoblox. See Infoblox sync filter documentation for details on how to define filters.Infoblox integration - standardized and improved error handling in the Infoblox client.
Removed
Fixed
debug
job option.Housekeeping