Index: netcf-0.2.0/tests/debian/fsroot/etc/network/interfaces
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/fsroot/etc/network/interfaces	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,27 @@
+auto lo
+iface lo inet loopback
+iface lo inet6 loopback
+
+auto br0
+iface br0 inet dhcp
+        bridge_ports eth0
+        bridge_maxwait 0
+        hwaddress ether 00:1c:c0:89:dd:01
+
+auto bond0
+iface bond0 inet static
+        netmask 255.255.255.0
+        network 10.0.1.0
+        address 10.0.1.27
+        bond_slaves eth1 eth2
+        bond_mode active-backup
+        bond_primary eth2
+iface bond0 inet6 dhcp
+auto eth3
+iface eth3 inet dhcp
+
+auto eth4
+iface eth4 inet dhcp
+
+auto eth4
+iface eth4 inet dhcp
Index: netcf-0.2.0/tests/debian/fsroot/sys/class/net/br0/address
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/fsroot/sys/class/net/br0/address	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1 @@
+aa:bb:cc:dd:ee:ff
Index: netcf-0.2.0/tests/debian/fsroot/sys/class/net/eth4/address
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/fsroot/sys/class/net/eth4/address	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1 @@
+00:00:00:00:00:01
Index: netcf-0.2.0/tests/debian/schema/bond-arp.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bond-arp.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="iface">
+      <element key="bond0">
+	<node label="family" value="inet"/>
+	<node label="method" value="static"/>
+	<node label="address" value="192.168.50.7"/>
+	<node label="netmask" value="255.255.255.0"/>
+	<node label="gateway" value="192.168.50.1"/>
+        <node label="bond_slaves" value="eth1 eth0"/>
+	<node label="bond_primary" value="eth1"/>
+	<node label="bond_mode" value="active-backup"/>
+	<node label="bond_arp_interval" value="100"/>
+	<node label="bond_arp_ip_target" value="192.168.50.1"/>
+	<node label="bond_arp_validate" value="active"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bond-defaults.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bond-defaults.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,20 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="iface">
+      <element key="bond0">
+	<node label="family" value="inet"/>
+	<node label="method" value="static"/>
+	<node label="address" value="192.168.50.7"/>
+	<node label="netmask" value="255.255.255.0"/>
+	<node label="gateway" value="192.168.50.1"/>
+	<node label="bond_slaves" value="eth1 eth0"/>
+	<node label="bond_primary" value="eth1"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bond.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bond.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,24 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="iface">
+      <element key="bond0">
+	<node label="family" value="inet"/>
+	<node label="method" value="static"/>
+	<node label="address" value="192.168.50.7"/>
+	<node label="netmask" value="255.255.255.0"/>
+	<node label="gateway" value="192.168.50.1"/>
+        <node label="bond_slaves" value="eth1 eth0"/>
+	<node label="bond_primary" value="eth1"/>
+	<node label="bond_mode" value="active-backup"/>
+	<node label="bond_miimon" value="100"/>
+	<node label="bond_updelay" value="10"/>
+	<node label="bond_use_carrier" value="0"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bridge-bond.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bridge-bond.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="br0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="br0">
+	<node label="family" value="inet"/>
+	<node label="method" value="manual"/>
+	<node label="mtu" value="1500"/>
+	<node label="bridge_ports" value="eth2 bond0"/>
+	<node label="bridge_stp" value="off"/>
+	<node label="pre-up" value="ifup bond0"/>
+	<node label="post-down" value="ifdown bond0"/>
+      </element>
+      <element key="bond0">
+	<node label="family" value="inet"/>
+	<node label="method" value="manual"/>
+        <node label="bond_slaves" value="eth1 eth0"/>
+	<node label="bond_primary" value="eth1"/>
+	<node label="bond_mode" value="active-backup"/>
+	<node label="bond_miimon" value="100"/>
+	<node label="bond_updelay" value="10"/>
+	<node label="bond_use_carrier" value="0"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bridge-empty.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bridge-empty.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="br0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="br0">
+	<node label="family" value="inet"/>
+	<node label="method" value="manual"/>
+	<node label="mtu" value="1500"/>
+	<node label="bridge_ports" value="none"/>
+	<node label="bridge_stp" value="off"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bridge-no-address.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bridge-no-address.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,22 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="br0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="br0">
+	<node label="family" value="inet"/>
+	<node label="method" value="manual"/>
+	<node label="mtu" value="1500"/>
+	<node label="bridge_ports" value="eth0 eth1"/>
+	<node label="bridge_stp" value="off"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bridge-vlan.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bridge-vlan.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="br0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="br0">
+	<node label="family" value="inet"/>
+	<node label="method" value="dhcp"/>
+	<node label="bridge_ports" value="eth0.42"/>
+	<node label="bridge_stp" value="off"/>
+	<node label="pre-up" value="ifup eth0.42"/>
+	<node label="post-down" value="ifdown eth0.42"/>
+      </element>
+      <element key="eth0.42">
+	<node label="family" value="inet"/>
+	<node label="method" value="manual"/>
+	<node label="vlan_raw_device" value="eth0"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/bridge.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/bridge.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,23 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="br0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="br0">
+	<node label="family" value="inet"/>
+	<node label="method" value="dhcp"/>
+	<node label="mtu" value="1500"/>
+	<node label="bridge_ports" value="eth0 eth1"/>
+	<node label="bridge_stp" value="off"/>
+	<node label="bridge_fd" value="0.01"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ethernet-dhcp.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ethernet-dhcp.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,17 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet"/>
+	<node label="method" value="dhcp"/>
+	<node label="hwaddress" value="ether aa:bb:cc:dd:ee:ff"/>
+	<node label="mtu" value="1492"/>
+<!--XXX	<node label="PEERDNS" value="no"/>-->
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ethernet-static-no-prefix.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ethernet-static-no-prefix.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,22 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth1"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth1">
+	<node label="family" value="inet"/>
+	<node label="method" value="static"/>
+	<node label="address" value="192.168.0.5"/>
+	<node label="gateway" value="192.168.0.1"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ethernet-static.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ethernet-static.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,23 @@
+<!-- A sketch of how the ethernet-static.xml example would be
+     turned into actual files.
+
+     The XML notation is close to what would turn up in a Augeas tree -->
+
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth1"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth1">
+	<node label="family" value="inet"/>
+	<node label="method" value="static"/>
+	<node label="address" value="192.168.0.5"/>
+	<node label="netmask" value="255.255.255.0"/>
+	<node label="gateway" value="192.168.0.1"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-autoconf-dhcp.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-autoconf-dhcp.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="dhcp"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-autoconf.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-autoconf.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="manual"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-dhcp.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-dhcp.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="dhcp"/>
+	<node label="pre-up" value="echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+	<node label="post-down" value="echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-local.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-local.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="manual"/>
+	<node label="pre-up" value="echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+	<node label="post-down" value="echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-static-multi.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-static-multi.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="static"/>
+	<node label="address" value="3ffe:ffff:0:5::1"/>
+	<node label="netmask" value="128"/>
+	<node label="pre-up" value="echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+	<node label="post-down" value="echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+	<node label="up" value="/sbin/ifconfig eth0 inet6 add 3ffe:ffff:0:5::3/128"/>
+	<node label="up" value="/sbin/ifconfig eth0 inet6 add 3ffe:ffff:0:5::5/128"/>
+	<node label="down" value="/sbin/ifconfig eth0 inet6 del 3ffe:ffff:0:5::3/128"/>
+	<node label="down" value="/sbin/ifconfig eth0 inet6 del 3ffe:ffff:0:5::5/128"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/ipv6-static.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/ipv6-static.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0">
+	<node label="family" value="inet6"/>
+	<node label="method" value="static"/>
+	<node label="address" value="3ffe:ffff:0:5::1"/>
+	<node label="netmask" value="128"/>
+	<node label="gateway" value="3ffe:ffff:1234:5678::1"/>
+	<node label="pre-up" value="echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+	<node label="post-down" value="echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf"/>
+      </element>
+    </array>
+  </tree>
+</forest>
Index: netcf-0.2.0/tests/debian/schema/schemas.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/schemas.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
+  <include rules="../../data/xml/schemas.xml"/>
+</locatingRules>
Index: netcf-0.2.0/tests/debian/schema/vlan.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ netcf-0.2.0/tests/debian/schema/vlan.xml	2012-05-15 11:22:23.693775632 -0500
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<forest>
+  <tree path="/files/etc/network/interfaces">
+    <array label="auto">
+      <element>
+	<node value="eth0.42"/>
+      </element>
+    </array>
+    <array label="iface">
+      <element key="eth0.42">
+	<node label="family" value="inet"/>
+	<node label="method" value="dhcp"/>
+	<node label="vlan_raw_device" value="eth0"/>
+<!--XXX	<node label="PEERDNS" value="no"/>-->
+      </element>
+    </array>
+  </tree>
+</forest>
