Feat: Closes #44 - Cisco EoX API integration#159
Draft
cflanderscpc wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a major new feature: integration with the Cisco EoX (End-of-Life) API to automatically synchronize hardware lifecycle information for Cisco devices and modules. It includes database schema changes, background job automation, secure credential management, new forms and navigation, and comprehensive documentation for the new functionality.
The most important changes are:
Cisco EoX API Integration
CiscoEoXSyncJob) that periodically queries the Cisco EoX API for end-of-life data based on DeviceType and ModuleType, updating or creatingHardwareLifecyclerecords accordingly. The job supports both serial number and part number lookups and reschedules itself according to the configured interval.CiscoEoXSettingsto securely store API credentials (with Fernet encryption for the client secret), sync interval, and manufacturer names. Includes migration to create this model. [1] [2] [3]CiscoEoXSettingsForm) for editing Cisco EoX settings via the Web UI, ensuring the client secret is never echoed back and is only updated when a new value is provided.Configuration and Settings
PLUGINS_CONFIG) and documentation to support Cisco EoX settings as a fallback when no database settings exist, and documents the precedence and security recommendations for credential storage. [1] [2]README.mdexplaining the Cisco EoX integration, configuration options, lookup order, and mapping of Cisco API fields to the plugin's model fields.User Interface and Navigation
These changes together provide automated, secure, and user-friendly synchronization of Cisco hardware lifecycle data, significantly enhancing the plugin's capabilities for NetBox users managing Cisco equipment.