Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764188
D3382.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
482 B
Referenced Files
None
Subscribers
None
D3382.diff
View Options
diff --git a/utils/netbox/build-etc-hosts-drake.py b/utils/netbox/build-etc-hosts-drake.py
--- a/utils/netbox/build-etc-hosts-drake.py
+++ b/utils/netbox/build-etc-hosts-drake.py
@@ -94,6 +94,9 @@
if len(ip.dns_name) == 0:
continue
+ if ip.status.value not in ["active", "deprecated"]:
+ continue
+
address = clean_ip(ip.address)
short = get_short_dns_name(ip.dns_name)
print(f"{address} {short} {ip.dns_name}")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 04:33 (17 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257173
Default Alt Text
D3382.diff (482 B)
Attached To
Mode
D3382: Exclude reserved addresses from /etc/hosts Drake entries
Attached
Detach File
Event Timeline
Log In to Comment