Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Validate required prefix variable is not empty #58195
This fixes a validation bug with the nxos_static_route module, where it accepts an empty prefix variable passed, even though it's required.
Currently, if an empty string is passed as the prefix, this module attempts to configure the following line on NX-OS switches:
where x.x.x.x is the next_hop passed. This throws an invalid command error on the switch.
To recreate the issue, call the following function: