Skip to content

new SITE options#3

Open
baadrdeen wants to merge 1 commit intoPaloAltoNetworks:masterfrom
baadrdeen:New-feature
Open

new SITE options#3
baadrdeen wants to merge 1 commit intoPaloAltoNetworks:masterfrom
baadrdeen:New-feature

Conversation

@baadrdeen
Copy link

Description

Modified Function: Updated the pull_config_sites function to handle additional site categories "ALL_DCS" (Data Centers) and "ALL_BRANCHS" (Branches).
Parameters Updated:
sites: Added options "ALL_DCS" and "ALL_BRANCHS" to the list of site categories.
output_filename: No changes.
output_multi: No changes.
New Logic Implemented:
Pulls configurations specifically for Data Centers ("HUB" role) and Branches ("SPOKE" role) sites.
Handles scenarios where no matching sites are found, providing appropriate error messages.

Motivation and Context

Reason for Change: This change was required to enhance the flexibility of the configuration pull function, allowing it to retrieve configurations not only for all sites ("ALL_SITES") but also specifically for data centers ("ALL_DCS") and branch sites ("ALL_BRANCHS").
Problem Solved: Previously, the function only supported pulling configurations for all sites, without the ability to target specific types of sites. This update allows for more granular control and streamlined configuration retrieval.

How Has This Been Tested?

Testing Environment: Tested in a staging environment with multiple site configurations, including data centers and branches.
Tests Performed:
Ran the updated pull_config_sites function with the new "ALL_DCS" and "ALL_BRANCHS" options.
Verified that the function correctly retrieves and saves the configurations for the specified site types.
Confirmed that error messages are correctly displayed when no matching sites are found.

Screenshots (if appropriate)

NA

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

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

Successfully merging this pull request may close these issues.

1 participant