Tee Ngo 8fa6359ba0 Fix URL and IP address validators
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>
2019-06-21 14:09:55 -04:00
2019-06-15 14:03:07 -05:00
2019-06-15 14:03:17 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:03:17 -05:00
2019-06-15 14:21:19 -05:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Playbooks

Description
StarlingX Ansible Playbooks
Readme 31 MiB
Languages
Jinja 70.4%
Python 21.3%
Shell 8.2%