Frontend ideas

conf daemon handle whole system configuration, serve system events and frontends requests.

Downstream

  • Should be able to interact with ifconfig
  • - - with DHCP server/client/relay
  • - - with mpd
  • - - with ipfw
  • - - with hostapd
  • - - with Switch API

Upstream

  1. Web frontend
  2. CLI frontend
  3. SNMP
  4. TR069
  5. UPNP

conf protocol
Protocol used between conf and frontend's.

  1. GET - get single value or subtree
  2. PUT - set/create single value or subtree
  3. DELETE - delete single value or subtree

h3.
GET
GET root.node.subnode?f=xml

<subnode value="1">
  <subsubnode>
    <item value="192.168.0.1/24"></item>
  </subsubnode>
</subnode>

GET root.node.subnode?f=json

{
  subnode = {
    value = "1",
    subsubnode = {
      item = {
        value = "192.168.0.1/24" 
      }
    }
  }
}