mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
To ipv6 network (#48572)
* Add to_ipv6_subnet function * Use the correct function for subnet * Corrected code style and tests * Corrected testcase assertion 64 bits make 8 octets, or 4 hextets * Import from correct module directly
This commit is contained in:
@@ -73,7 +73,8 @@ def test_validate_ip():
|
||||
ips = [
|
||||
('1.1.1.1/24', '1.1.1.0/24'),
|
||||
('192.168.56.101/16', '192.168.0.0/16'),
|
||||
('1203:8fe0:fe80:b897:8990:8a7c:99bf:323d/64', '1203:8fe0:fe80::/64'),
|
||||
# 64 bits make 8 octets, or 4 hextets
|
||||
('1203:8fe0:fe80:b897:8990:8a7c:99bf:323d/64', '1203:8fe0:fe80:b897::/64'),
|
||||
]
|
||||
|
||||
for ip, net in ips:
|
||||
|
||||
Reference in New Issue
Block a user