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_bgp_peer_group): Fix for IBGP export next-hop options #459

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

jamesholland-uk
Copy link
Member

@jamesholland-uk jamesholland-uk commented Jul 4, 2023

Description

Fix for IBGP export_nexthop choices, adding original which is a valid choice for IBGP.

Note: The default for export_nexthop is currently resolve which is not valid for IBGP. Users choosing type: ibgp will therefore need to explicitly choose original or use-self for export_nexthop, leaving export_nexthop undefined will cause an error. Changing the default for export_nexthop would constitute a breaking change, so this is why the PR's code is presented as just an extra choice, not a change to the default choice.

Motivation and Context

Fixes #441

How Has This Been Tested?

Tested locally:

    - name: Create BGP Peer Group
      paloaltonetworks.panos.panos_bgp_peer_group:
        provider: "{{ device }}"
        name: "network4"
        type: "ibgp"
        enable: true
        export_nexthop: 'original'

Screenshots (if appropriate)

Test success:
Screenshot 2023-07-04 at 13 48 29

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.

Copy link
Collaborator

@shinmog shinmog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jamesholland-uk jamesholland-uk merged commit 9489fa2 into develop Jul 11, 2023
@jamesholland-uk jamesholland-uk deleted the fix-ibgp-export-nexthop branch July 11, 2023 17:20
github-actions bot pushed a commit that referenced this pull request Jul 11, 2023
### [2.17.3](v2.17.2...v2.17.3) (2023-07-11)

### Bug Fixes

* **eda:** Make `custom_logger` argument optional ([#456](#456)) ([49ed307](49ed307))
* **panos_admpwd:** Fix success criteria and update example in docs ([#457](#457)) ([9ecdb65](9ecdb65))
* **panos_bgp_peer_group:** Fix for IBGP export next-hop options ([#459](#459)) ([9489fa2](9489fa2))
* **panos_ike_crypto_profile:** Update DH group choices ([#461](#461)) ([8194318](8194318))
* **panos_ipsec_profile:** Update DH group choices ([#462](#462)) ([1798a3b](1798a3b))
* **panos_software:** Modify valid sequence for downloads only ([#463](#463)) ([214c4bb](214c4bb))
@github-actions
Copy link

🎉 This PR is included in version 2.17.3 🎉

The release is available on Ansible Galaxy and GitHub release

Posted by semantic-release bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panos_bgp_peer_group export-nexthop 'resolve' is not an allowed keyword error for type: ibgp
2 participants