Project

General

Profile

Frontend ideas » History » Version 4

Oleksandr Rybalko, 04/15/2011 10:18 AM

1 1 Oleksandr Rybalko
h1. Frontend ideas
2 1 Oleksandr Rybalko
3 1 Oleksandr Rybalko
_*conf*_ daemon handle whole system configuration, serve system events and frontends requests.
4 1 Oleksandr Rybalko
5 2 Oleksandr Rybalko
h2. Downstream
6 1 Oleksandr Rybalko
7 1 Oleksandr Rybalko
* Should be able to interact with ifconfig
8 1 Oleksandr Rybalko
* - - with DHCP server/client/relay
9 1 Oleksandr Rybalko
* - - with mpd
10 1 Oleksandr Rybalko
* - - with ipfw
11 1 Oleksandr Rybalko
* - - with hostapd
12 1 Oleksandr Rybalko
* - - with Switch API
13 1 Oleksandr Rybalko
14 2 Oleksandr Rybalko
h2. Upstream
15 1 Oleksandr Rybalko
16 1 Oleksandr Rybalko
# Web frontend
17 1 Oleksandr Rybalko
# CLI frontend
18 1 Oleksandr Rybalko
# SNMP
19 1 Oleksandr Rybalko
# TR069
20 1 Oleksandr Rybalko
# UPNP
21 2 Oleksandr Rybalko
22 2 Oleksandr Rybalko
h2. conf protocol
23 2 Oleksandr Rybalko
Protocol used between conf and frontend's.
24 2 Oleksandr Rybalko
25 2 Oleksandr Rybalko
# *GET* - get single value or subtree
26 2 Oleksandr Rybalko
# *PUT* - set/create single value or subtree
27 2 Oleksandr Rybalko
# *DELETE* - delete single value or subtree
28 3 Oleksandr Rybalko
29 3 Oleksandr Rybalko
h3.
30 3 Oleksandr Rybalko
*GET*
31 3 Oleksandr Rybalko
@GET root.node.subnode?f=xml@
32 3 Oleksandr Rybalko
@
33 3 Oleksandr Rybalko
<subnode value="1">
34 3 Oleksandr Rybalko
  <subsubnode>
35 3 Oleksandr Rybalko
    <item value="192.168.0.1/24"></item>
36 3 Oleksandr Rybalko
  </subsubnode>
37 3 Oleksandr Rybalko
</subnode>
38 3 Oleksandr Rybalko
@
39 3 Oleksandr Rybalko
40 3 Oleksandr Rybalko
@GET root.node.subnode?f=json@
41 3 Oleksandr Rybalko
@
42 4 Oleksandr Rybalko
 {
43 3 Oleksandr Rybalko
  subnode = {
44 3 Oleksandr Rybalko
    value = "1",
45 3 Oleksandr Rybalko
    subsubnode = {
46 3 Oleksandr Rybalko
      item = {
47 3 Oleksandr Rybalko
        value = "192.168.0.1/24"
48 3 Oleksandr Rybalko
      }
49 3 Oleksandr Rybalko
    }
50 3 Oleksandr Rybalko
  }
51 4 Oleksandr Rybalko
 }
52 3 Oleksandr Rybalko
@