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

fix(panos_static_route): invalid nexthop for none value #587

Closed

Conversation

alperenkose
Copy link
Collaborator

Description

This PR fixes issue with "none" value for nexthop_type in panos_static_route.

This change also requires pan-os-python to accept 'none' value for the nexthop type, proposed on the following PR:
PaloAltoNetworks/pan-os-python#578

Motivation and Context

With the recent change in pan-os-ansible, it fetches default values from pan-os-python sdk while creating or updating objects with None value params. In the existing implementation "none" string value was converted to None in the module and fetching default value from pan-os-python sdk (which is 'ip-address') for this lead to a invalid config.
With this change "none" string value is passed as-is to the pan-os-python and it is also proposed to accept "none" value for the nexthop type in the linked PR.

Fixes #584

How Has This Been Tested?

Tested live on VMSeries firewalls and Panorama.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

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.

This change also requires an update on pan-os-python to accept 'none'
value for the nexthop type.
@alperenkose alperenkose linked an issue Oct 10, 2024 that may be closed by this pull request
@alperenkose
Copy link
Collaborator Author

Will have to wait for PaloAltoNetworks/pan-os-python#578 in order to mark ready for merging.

@alperenkose
Copy link
Collaborator Author

This PR is replaced by #589

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.

paloaltonetworks.panos.panos_static_route on 2.21.2
1 participant