From 8eb116378aa7841f015e94c4257d7acc92230fe2 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 7 Nov 2021 13:21:03 +0100 Subject: [PATCH] wip --- libs/bind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/bind.py b/libs/bind.py index 75acec2..6deee0a 100644 --- a/libs/bind.py +++ b/libs/bind.py @@ -3,6 +3,7 @@ from ipaddress import ip_address def record_matches_view(value, type, name, zone, view, metadata, repo): if type not in ['A', 'AAAA']: return True + if metadata.get(f'bind/views/{view}/is_internal'): if ip_address(value).is_private: return True @@ -18,7 +19,6 @@ def record_matches_view(value, type, name, zone, view, metadata, repo): return True else: if ip_address(value).is_global: - if value == "10.0.0.17" and view == 'external': print(333) return True elif not list(filter( lambda other_value: ip_address(other_value).is_global,