summaryrefslogtreecommitdiff
path: root/luci2
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-10-22 18:59:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-10-22 18:59:07 +0000
commitdce206d8191a33863ec36553f761e611d42b8762 (patch)
tree17158659c8b15a8b8dac2677c9764d19f85fd96e /luci2
parent992f70537f96b0533e05a6a643deefa8421fec98 (diff)
downloadluci2-ui-dce206d8191a33863ec36553f761e611d42b8762.tar.gz
luci2: wrap luci2.network.ifup and luci2.network.ifdown calls as LuCI2.network.setUp() and LuCI2.network.setDown()
Diffstat (limited to 'luci2')
-rw-r--r--luci2/htdocs/luci2/luci2.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js
index ffa58ea..d2ad812 100644
--- a/luci2/htdocs/luci2/luci2.js
+++ b/luci2/htdocs/luci2/luci2.js
@@ -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 } }
})
};