
The current URL and IP address validators ported from config controller have some defficiencies. This commit leverages django URLValidator for URL validation and supplements the existing domain name/ip address validation with Ansible ipaddr filter test to catch missing/future formats. Verify the validation tasks with the following input - http://[2001:db8::1]:3128 - https://test.abc.com - ::1 - localhost - 127.0.0.1 - fe80::100/10 - 2001:db8:1::/64 - "[2001:db8::1]:8080" - 128.224.150.0/23 - test.abc.com - test.abc.com:3000 - 2001:db8:?::/32 (failed case) Closes-Bug: 1833710 Change-Id: Ib3345b41ab932cd434906725f709a8b9a0195e3f Signed-off-by: Tee Ngo <Tee.Ngo@windriver.com>
stx-ansible-playbooks
StarlingX Bootstrap and Deployment Playbooks
Description
Languages
Jinja
70.4%
Python
21.3%
Shell
8.2%