Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3915463
D3594.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
571 B
Referenced Files
None
Subscribers
None
D3594.id.diff
View Options
diff --git a/_modules/node.py b/_modules/node.py
--- a/_modules/node.py
+++ b/_modules/node.py
@@ -30,6 +30,10 @@
]
+# Should switch to CIDR notation if anything else than /8 /16 or /24.
+DRAKE_PREFIX = "172.27.27."
+
+
def _get_all_nodes():
return __pillar__.get("nodes", {})
@@ -305,6 +309,9 @@
ipv4 = interface["ipv4"]["address"]
if ipaddress.ip_address(ipv4).is_private:
+ if not ipv4.startswith(DRAKE_PREFIX):
+ continue
+
target = private_network
else:
target = network
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 20:27 (15 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306815
Default Alt Text
D3594.id.diff (571 B)
Attached To
Mode
D3594: Select 172.27.27. address when resolving private network
Attached
Detach File
Event Timeline
Log In to Comment