Page MenuHomeDevCentral

D3594.id.diff
No OneTemporary

D3594.id.diff

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

Mime Type
text/plain
Expires
Mon, Nov 18, 07:48 (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250368
Default Alt Text
D3594.id.diff (571 B)

Event Timeline