ucimap: properly test bool interpretation
authorFelix Fietkau <nbd@openwrt.org>
Sun, 30 Aug 2009 15:43:38 +0000 (17:43 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 30 Aug 2009 15:43:38 +0000 (17:43 +0200)
test/config/network
test/references/ucimap_example.result

index ec57d7b2d0500db54046055be60e3a3dc7a145d1..b201c4872ff4c2a4ed74047a8d88228057cba56e 100644 (file)
@@ -8,7 +8,7 @@ config 'interface' 'lan'
        option 'proto' 'static'
        option 'ifname' 'eth0'
        option 'test' '123'
-       option 'enabled' 'on'
+       option 'enabled' 'off'
        list 'aliases' 'a'
        list 'aliases' 'b'
        option 'ipaddr' '2.3.4.5'
@@ -16,4 +16,5 @@ config 'interface' 'lan'
 config 'interface' 'wan'
        option 'proto'  'dhcp'
        option 'ifname' 'eth1'
+       option 'enabled' 'on'
 
index d27e49eb8cac0ab29967f61fc2c096822175c724..c3dfb68a50c4295ea76483c2dedbd3f4dd895452 100644 (file)
@@ -3,7 +3,7 @@ New network section 'lan'
        ifname: eth0
        ipaddr: 2.3.4.5
        test: 123
-       enabled: on
+       enabled: off
 New alias: b
 New alias: a
 New network section 'wan'
@@ -11,4 +11,4 @@ New network section 'wan'
        ifname: eth1
        ipaddr: 0.0.0.0
        test: -1
-       enabled: off
+       enabled: on