Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3751391
D3594.id9261.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.id9261.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
Mon, Nov 18, 08:03 (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250368
Default Alt Text
D3594.id9261.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