olsrdhna6.lua 971 B

12345678910111213141516171819202122232425
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
  3. -- Licensed to the public under the Apache License 2.0.
  4. local uci = require "luci.model.uci".cursor()
  5. mh = Map("olsrd6", translate("OLSR - HNA6-Announcements"), translate("Hosts in a OLSR routed network can announce connecitivity " ..
  6. "to external networks using HNA6 messages."))
  7. hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
  8. "prefix must be in CIDR notation."))
  9. hna6.addremove = true
  10. hna6.anonymous = true
  11. hna6.template = "cbi/tblsection"
  12. net6 = hna6:option(Value, "netaddr", translate("Network address"))
  13. net6.datatype = "ip6addr"
  14. net6.placeholder = "fec0:2200:106:0:0:0:0:0"
  15. net6.default = "fec0:2200:106:0:0:0:0:0"
  16. msk6 = hna6:option(Value, "prefix", translate("Prefix"))
  17. msk6.datatype = "range(0,128)"
  18. msk6.placeholder = "128"
  19. msk6.default = "128"
  20. return mh