NIU:
[project/luci.git] / modules / niu / luasrc / model / cbi / niu / network / assign.lua
1 local cursor = require "luci.model.uci".cursor()
2 local d = Delegator()
3 d.allow_finish = true
4 d.allow_back = true
5 d.allow_cancel = true
6
7 d:add("assign1", load("niu/network/assign1"))
8
9 function d.on_cancel()
10         cursor:revert("dhcp")
11 end
12
13 function d.on_done()
14         cursor:commit("dhcp")
15 end
16
17 return d