working on the interfaces page
[CBFWR.git] / doco / configs.txt
index 7184e3b..55db8a2 100644 (file)
@@ -3,4 +3,46 @@ there are 3 areas in shared memory reserved for configuration.
 0 - fs configuration
 1 - boot hardware config
 2 - running config (deltas from 0)
-3 - web config (contains only deltas from 0).
\ No newline at end of file
+3 - web config (contains only deltas from 0).
+
+web config writes directly to 3 and messages cbrwrd about stuff.
+
+config layout is like this:
+[status] = conf|noconf|nodir|changelevel
+[hostname] = hostname
+[domainname] = domainname
+[login][username] = sha1password
+[zone][<zonename>][name]=1
+[interface][<interfacename>][desciption] = desc
+                            [name] = name
+                            [address4] = address
+                            [address6] = address
+                            [zone] = zone
+                            [mtu] = mtu
+                            [speed] = speed
+                            [duplex] = duplex
+
+
+                            
+[interface][lag][<lagname>][<x>] = interface
+                [description] = desc
+                
+[interface][bridge][<bridgename>][<x>] = interface
+                      [description]
+                      
+[route4][default|<network>][address] = gateway
+                           [device] = device
+                           [description]
+
+[route6][default|<network>][address] = gateway
+                           [device] = device
+                           [description]
+                           
+[dns][server][<x>][address] = address
+
+[ntp][server][<x>][address] = adddress
+
+[hardware][netdev][<itnerface>][name] = realname
+                               [driver] = driver
+                               [mtu] = mtu
+                               [hwaddress] = mac address
\ No newline at end of file