The "IP_address" modification appears to attempt to check for a decimal point "." prior to allowing the command to proceed. Instead it checks for the absence with a != before it proceeds, causing it to error if any decimal point is found.
Description
Modified the code to be '== npos', requiring at least one decimal point on an IP_address change request in the CLI.
Type of change
[X] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[X] Attempted to set the IP_address from within the CLI. Code change allowed the configuration to succeed.
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
The "IP_address" modification appears to attempt to check for a decimal point "." prior to allowing the command to proceed. Instead it checks for the absence with a != before it proceeds, causing it to error if any decimal point is found.
Description
Modified the code to be '== npos', requiring at least one decimal point on an IP_address change request in the CLI.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: