refresh nodes hrns at startup
[plcapi.git] / db-config.d / 099-hrns
diff --git a/db-config.d/099-hrns b/db-config.d/099-hrns
new file mode 100644 (file)
index 0000000..f55cd74
--- /dev/null
@@ -0,0 +1,8 @@
+# -*-python-*-
+# $Id$
+# $URL$
+#################### 
+# quick and dirty, make sure all hrns are set on local nodes
+# could/should get trashed somedy
+
+for node in GetNodes({'peer_id':None}): UpdateNode(node['node_id'],{'hostname':node['hostname']})