Skip to content

Update the iosxr_banner module to allow exec banner configuration on IOS-XR devices #535

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nbeard49
Copy link

SUMMARY

Update the iosxr_banner module to allow exec banner configuration on IOS-XR devices

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

iosxr_banner

ADDITIONAL INFORMATION

It appears that updating the array in the choices function to include the 'exec' string allows this to work as expected. The 'exec' option can then be passed to the banner parameter in the module without issue. This has been tested locally against ASR9K/NCS routers.


@AAYUSH2091
Copy link
Contributor

@nbeard49 kindly add the change log , unit and integration test to confirm

@AAYUSH2091 AAYUSH2091 requested a review from Ruchip16 March 19, 2025 09:40
@Ruchip16 Ruchip16 marked this pull request as draft April 4, 2025 18:25
@@ -255,7 +255,7 @@ def run(self):
def main():
"""main entry point for module execution"""
argument_spec = dict(
banner=dict(required=True, choices=["login", "motd"]),
banner=dict(required=True, choices=["login", "motd", "exec"]),
Copy link
Member

Choose a reason for hiding this comment

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

the changes here done, how are you validating those?
also we need to do changes in rm_templates, argspec files as well and not just here as it is just a doc file, actual changes need to be implemented in argspec, rm_templates file

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.

3 participants