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

Updating iosxe/show_aaa.py/ShowAAServers p1b regex for RADSEC port consideration #865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kentonrussell
Copy link

Description

Adding regex logic to include both RADSEC-port and RADSEC port as valid auth port values.
C9800 version 17.12.3 uses RADSEC port while current logic only identifies RADSEC-port.

Motivation and Context

This change is required to match RADSEC AAA servers on the C9800.

Impact (If any)

None at the moment.

Screenshots:

Checklist:

  • [ x] I have updated the changelog.
  • I have updated the documentation (If applicable).
  • I have added tests to cover my changes (If applicable).
  • [ x] All new and existing tests passed.
  • [ x] All new code passed compilation.

@kentonrussell kentonrussell requested a review from a team as a code owner June 16, 2024 15:09
Copy link
Contributor

@Taarini Taarini left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. Sorry about the delay in review.

Please add UT, your changes looks good, left a comment for you to address them.

@@ -197,8 +197,8 @@ def cli(self, output = None):
# RADIUS: id 9, priority 1, host 11.15.24.174, auth-port 1812, acct-port 1813, hostname ISE-RAD
p1a = re.compile(r'(^.*)\:\s+id\s+(?P<id>\d+)\,\s+priority\s+(?P<priority>(\d+))\,\s+host\s+(?P<host>(.*))\,\s+auth\-port\s+(?P<auth_port>(\d+))\,\s+acct\-port\s+(?P<acct_port>(\d+))\,\s*hostname\s*(?P<hostname>(.*))$')

# RADIUS: id 9, priority 1, host 11.15.24.174, RADSEC-port 1812,hostname ISE-RAD
p1b = re.compile(r'(.*)\:\s+id\s+(?P<id>\d+)\,\s+priority\s+(?P<priority>(\d+))\,\s+host\s+(?P<host>(.*))\,\s*(RADSEC\-port\s*(?P<radsec_port>(\d+)))\,\s*hostname\s+(?P<hostname>(.*))$')
# RADIUS: id 9, priority 1, host 11.15.24.174, RADSEC[- ]port 1812,hostname ISE-RAD
Copy link
Contributor

Choose a reason for hiding this comment

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

Please dont update the existing comment. Add a separate comment for the regex change made

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.

2 participants