summaryrefslogtreecommitdiff
path: root/app/views/export
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/export')
-rw-r--r--app/views/export/all.rxml31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/export/all.rxml b/app/views/export/all.rxml
new file mode 100644
index 0000000..d1aa10e
--- /dev/null
+++ b/app/views/export/all.rxml
@@ -0,0 +1,31 @@
+xml.instruct! :xml, :version=>"1.0"
+
+xml.network{
+ for location in @locations
+ xml.location do
+ xml.name(location.name)
+ xml.street(location.street)
+ xml.streetnr(location.streetnr)
+ xml.comment(location.comment)
+ xml.gallery(location.gallery_link)
+ xml.lat(location.lat)
+ xml.lon(location.lon)
+
+ for node in location.node
+ xml.node do
+ xml.name(node.name)
+ xml.comment(node.comment)
+
+ for ip in node.ip
+ xml.ip do
+ xml.name(ip.name)
+ xml.address(ip.ip)
+ xml.dns("#{ip.name}.#{node.name}.#{location.name}")
+ end
+ end
+
+ end
+ end
+ end
+ end
+}