From b6ca062670b342344df08b53fb216db619ef42bc Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 16:39:42 +0200 Subject: Import legacy manman source Copied from www.ffgraz.net --- app/views/export/all.rxml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/views/export/all.rxml (limited to 'app/views/export') 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 +} -- cgit v1.2.1