wip
This commit is contained in:
parent
02bd0b6511
commit
8eb116378a
1 changed files with 1 additions and 1 deletions
|
@ -3,6 +3,7 @@ from ipaddress import ip_address
|
||||||
def record_matches_view(value, type, name, zone, view, metadata, repo):
|
def record_matches_view(value, type, name, zone, view, metadata, repo):
|
||||||
if type not in ['A', 'AAAA']:
|
if type not in ['A', 'AAAA']:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if metadata.get(f'bind/views/{view}/is_internal'):
|
if metadata.get(f'bind/views/{view}/is_internal'):
|
||||||
if ip_address(value).is_private:
|
if ip_address(value).is_private:
|
||||||
return True
|
return True
|
||||||
|
@ -18,7 +19,6 @@ def record_matches_view(value, type, name, zone, view, metadata, repo):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
if ip_address(value).is_global:
|
if ip_address(value).is_global:
|
||||||
if value == "10.0.0.17" and view == 'external': print(333)
|
|
||||||
return True
|
return True
|
||||||
elif not list(filter(
|
elif not list(filter(
|
||||||
lambda other_value: ip_address(other_value).is_global,
|
lambda other_value: ip_address(other_value).is_global,
|
||||||
|
|
Loading…
Reference in a new issue