diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-08-29 22:40:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-08-29 22:40:10 +0200 |
commit | a30dac7c24549f9ee32a484b74af049607ffd42b (patch) | |
tree | c42f7a5548e2997a37884d27650231762158c996 /src/tests/test_initial_setup.py | |
parent | eb5a1be8845e75c115910d96b1bc468c872ce705 (diff) | |
download | vyos-1x-a30dac7c24549f9ee32a484b74af049607ffd42b.tar.gz vyos-1x-a30dac7c24549f9ee32a484b74af049607ffd42b.zip |
vyos package: add IP address validators
* is_addr_assigned(addr) - Test if address is assigned to ANY interface
on the system
* is_ipv4(addr) - Test if it is an IPv4 address, both network and host
* is_ipv6(addr) - Test if it is an IPv6 address, both network and host
Diffstat (limited to 'src/tests/test_initial_setup.py')
0 files changed, 0 insertions, 0 deletions