-
Notifications
You must be signed in to change notification settings - Fork 57
fix(iosxr_ping): Fix IOS XR ping dependency when specifying VRF #552
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
base: main
Are you sure you want to change the base?
Conversation
|
@roverflow @Ruchip16 - would you kindly have some time to look at this PR ? Another option is to remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @horiagunica thanks for raising the PR, i do not understand the need of adding afi here as commands for ip address works irrespectively of vrf right, we dont need the dependency in the very first place to be added to the module.
|
@Ruchip16 - try executing that task against any IOS XR device - it's going to throw an error each time. It's currently running That's I thought of placing the condition there so if you DO specify the VRF instance - you omit the |
|
@Ruchip16 - can you please have a look at this and my previous reply ? |
thanks for the contribution, could you please add changelog and required integration tests to validate this behaviour? |
|



SUMMARY
This issues Fixes #545 .
When specifying a VRF - there isn't any
ipv4oripv6argument from the AFI and if this is specified - the command errors out.Within the PR I have added another condition that if the
vrfargument is given a value - then it will omit theafivalue from being placed into the command - that should fix the issue while still maintaing the default (non-vrf) behaviour.As a side note - I think it might be safe taking this AFI out completely.
ISSUE TYPE
COMPONENT NAME
module : cisco.iosxr.iosr_ping
file : argspec -> ping
ADDITIONAL INFORMATION