luci2: wrap luci2.network.ifup and luci2.network.ifdown calls as LuCI2.network.setUp...
[project/luci2/ui.git] / luci2 / htdocs / luci2 / luci2.js
index ffa58ea..d2ad812 100644 (file)
@@ -1013,6 +1013,21 @@ function LuCI2()
                        method: 'nslookup',
                        params: [ 'data' ],
                        expect: { '': { code: -1 } }
+               }),
+
+
+               setUp: _luci2.rpc.declare({
+                       object: 'luci2.network',
+                       method: 'ifup',
+                       params: [ 'data' ],
+                       expect: { '': { code: -1 } }
+               }),
+
+               setDown: _luci2.rpc.declare({
+                       object: 'luci2.network',
+                       method: 'ifdown',
+                       params: [ 'data' ],
+                       expect: { '': { code: -1 } }
                })
        };