X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=blobdiff_plain;f=luci2%2Fhtdocs%2Fluci2%2Fluci2.js;h=d2ad812b5549b2be20f9508c8a844b4ea9c00e8c;hp=ffa58ea0de2d8ceedf9c119a711c57624940caab;hb=dce206d8191a33863ec36553f761e611d42b8762;hpb=992f70537f96b0533e05a6a643deefa8421fec98 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 } } }) };