| 1 | package network |
|---|
| 2 | |
|---|
| 3 | config package |
|---|
| 4 | option title 'Network configuration' |
|---|
| 5 | |
|---|
| 6 | config section |
|---|
| 7 | option name 'interface' |
|---|
| 8 | option title 'Network interface' |
|---|
| 9 | option package 'network' |
|---|
| 10 | list depends 'proto=static, ipaddr, netmask' |
|---|
| 11 | list depends 'proto=static, ip6addr' |
|---|
| 12 | list depends 'proto=pppoe, username, password' |
|---|
| 13 | list depends 'proto=ppp, device' |
|---|
| 14 | list depends 'proto=pptp, username, password, server' |
|---|
| 15 | list depends 'proto=dhcp' |
|---|
| 16 | list depends 'proto=none' |
|---|
| 17 | option named 'true' |
|---|
| 18 | option required 'true' |
|---|
| 19 | |
|---|
| 20 | config variable |
|---|
| 21 | option name 'ifname' |
|---|
| 22 | option title 'Physical interface' |
|---|
| 23 | option section 'network.interface' |
|---|
| 24 | |
|---|
| 25 | config variable |
|---|
| 26 | option name 'macaddr' |
|---|
| 27 | option title 'Interface MAC address' |
|---|
| 28 | option section 'network.interface' |
|---|
| 29 | option datatype 'macaddr' |
|---|
| 30 | |
|---|
| 31 | config variable |
|---|
| 32 | option name 'mtu' |
|---|
| 33 | option title 'MTU' |
|---|
| 34 | option section 'network.interface' |
|---|
| 35 | option datatype 'uint' |
|---|
| 36 | |
|---|
| 37 | config variable |
|---|
| 38 | option name 'ipaddr' |
|---|
| 39 | option title 'IPv4 host address' |
|---|
| 40 | option section 'network.interface' |
|---|
| 41 | option datatype 'ip4addr' |
|---|
| 42 | |
|---|
| 43 | config variable |
|---|
| 44 | option name 'netmask' |
|---|
| 45 | option title 'IPv4 network mask' |
|---|
| 46 | option section 'network.interface' |
|---|
| 47 | option datatype 'ip4addr' |
|---|
| 48 | |
|---|
| 49 | config variable |
|---|
| 50 | option name 'gateway' |
|---|
| 51 | option title 'IPv4 gateway' |
|---|
| 52 | option section 'network.interface' |
|---|
| 53 | option datatype 'ip4addr' |
|---|
| 54 | |
|---|
| 55 | config variable |
|---|
| 56 | option name 'bcast' |
|---|
| 57 | option title 'IPv4 broadcast address' |
|---|
| 58 | option section 'network.interface' |
|---|
| 59 | option datatype 'ip4addr' |
|---|
| 60 | |
|---|
| 61 | config variable |
|---|
| 62 | option name 'ip6addr' |
|---|
| 63 | option title 'IPv6 address (CIDR)' |
|---|
| 64 | option section 'network.interface' |
|---|
| 65 | option datatype 'ip6addr' |
|---|
| 66 | |
|---|
| 67 | config variable |
|---|
| 68 | option name 'ip6gw' |
|---|
| 69 | option title 'IPv6 gateway' |
|---|
| 70 | option section 'network.interface' |
|---|
| 71 | option datatype 'ip6addr' |
|---|
| 72 | |
|---|
| 73 | config variable |
|---|
| 74 | option name 'dns' |
|---|
| 75 | option title 'DNS server (IPv4 or IPv6)' |
|---|
| 76 | option section 'network.interface' |
|---|
| 77 | option datatype 'ipaddr' |
|---|
| 78 | option multival 'true' |
|---|
| 79 | |
|---|
| 80 | config variable |
|---|
| 81 | option name 'keepalive' |
|---|
| 82 | option title 'keep-alive' |
|---|
| 83 | option description 'Number of connection failures before reconnect' |
|---|
| 84 | option section 'network.interface' |
|---|
| 85 | option datatype 'uint' |
|---|
| 86 | list depends 'proto=pppoe' |
|---|
| 87 | list depends 'proto=pptp' |
|---|
| 88 | list depends 'proto=ppp' |
|---|
| 89 | |
|---|
| 90 | config variable |
|---|
| 91 | option name 'demand' |
|---|
| 92 | option title 'Dial on-demand' |
|---|
| 93 | option description 'Number of seconds to wait before closing the connection due to inactivity' |
|---|
| 94 | option section 'network.interface' |
|---|
| 95 | option datatype 'uint' |
|---|
| 96 | list depends 'proto=pppoe' |
|---|
| 97 | list depends 'proto=pptp' |
|---|
| 98 | list depends 'proto=ppp' |
|---|
| 99 | |
|---|
| 100 | config variable |
|---|
| 101 | option name 'username' |
|---|
| 102 | option title 'Username' |
|---|
| 103 | option section 'network.interface' |
|---|
| 104 | option datatype 'string' |
|---|
| 105 | list depends 'proto=pppoe' |
|---|
| 106 | list depends 'proto=pptp' |
|---|
| 107 | list depends 'proto=ppp' |
|---|
| 108 | |
|---|
| 109 | config variable |
|---|
| 110 | option name 'password' |
|---|
| 111 | option title 'Password' |
|---|
| 112 | option section 'network.interface' |
|---|
| 113 | option datatype 'string' |
|---|
| 114 | list depends 'proto=pppoe' |
|---|
| 115 | list depends 'proto=pptp' |
|---|
| 116 | list depends 'proto=ppp' |
|---|
| 117 | |
|---|
| 118 | config variable |
|---|
| 119 | option name 'server' |
|---|
| 120 | option title 'PPTP server' |
|---|
| 121 | option section 'network.interface' |
|---|
| 122 | option datatype 'host' |
|---|
| 123 | list depends 'proto=pptp' |
|---|
| 124 | |
|---|
| 125 | config variable |
|---|
| 126 | option name 'device' |
|---|
| 127 | option title 'Modem device' |
|---|
| 128 | option section 'network.interface' |
|---|
| 129 | option datatype 'device' |
|---|
| 130 | list depends 'proto=ppp' |
|---|
| 131 | |
|---|
| 132 | config variable |
|---|
| 133 | option name 'defaultroute' |
|---|
| 134 | option title 'Replace default route' |
|---|
| 135 | option section 'network.interface' |
|---|
| 136 | option datatype 'boolean' |
|---|
| 137 | list depends 'proto=ppp' |
|---|
| 138 | |
|---|
| 139 | config variable |
|---|
| 140 | option name 'peerdns' |
|---|
| 141 | option title 'Use peer DNS' |
|---|
| 142 | option section 'network.interface' |
|---|
| 143 | option datatype 'boolean' |
|---|
| 144 | list depends 'proto=ppp' |
|---|
| 145 | |
|---|
| 146 | config variable |
|---|
| 147 | option name 'ipv6' |
|---|
| 148 | option title 'Enable IPv6 on PPP link' |
|---|
| 149 | option section 'network.interface' |
|---|
| 150 | option datatype 'boolean' |
|---|
| 151 | list depends 'proto=ppp' |
|---|
| 152 | |
|---|
| 153 | config variable |
|---|
| 154 | option name 'connect' |
|---|
| 155 | option title 'PPP connect script' |
|---|
| 156 | option section 'network.interface' |
|---|
| 157 | option datatype 'file' |
|---|
| 158 | list depends 'proto=ppp' |
|---|
| 159 | |
|---|
| 160 | config variable |
|---|
| 161 | option name 'disconnect' |
|---|
| 162 | option title 'PPP disconnect script' |
|---|
| 163 | option section 'network.interface' |
|---|
| 164 | option datatype 'file' |
|---|
| 165 | list depends 'proto=ppp' |
|---|
| 166 | |
|---|
| 167 | config variable |
|---|
| 168 | option name 'pppd_options' |
|---|
| 169 | option title 'Additional PPP daemon options' |
|---|
| 170 | option section 'network.interface' |
|---|
| 171 | option datatype 'string' |
|---|
| 172 | list depends 'proto=ppp' |
|---|
| 173 | |
|---|
| 174 | config variable |
|---|
| 175 | option name 'proto' |
|---|
| 176 | option title 'Protocol' |
|---|
| 177 | option section 'network.interface' |
|---|
| 178 | option type 'enum' |
|---|
| 179 | option required 'true' |
|---|
| 180 | |
|---|
| 181 | config enum |
|---|
| 182 | option variable 'network.interface.proto' |
|---|
| 183 | option value 'none' |
|---|
| 184 | option title 'Disabled' |
|---|
| 185 | |
|---|
| 186 | config enum |
|---|
| 187 | option variable 'network.interface.proto' |
|---|
| 188 | option value 'dhcp' |
|---|
| 189 | option title 'Retrieve IP address via DHCP' |
|---|
| 190 | option default 'true' |
|---|
| 191 | |
|---|
| 192 | config enum |
|---|
| 193 | option variable 'network.interface.proto' |
|---|
| 194 | option value 'pptp' |
|---|
| 195 | option title 'Interface is a PPTP tunnel endpoint' |
|---|
| 196 | |
|---|
| 197 | config enum |
|---|
| 198 | option variable 'network.interface.proto' |
|---|
| 199 | option value 'static' |
|---|
| 200 | option title 'Interface has static network configuration' |
|---|
| 201 | |
|---|
| 202 | config enum |
|---|
| 203 | option variable 'network.interface.proto' |
|---|
| 204 | option value 'pppoe' |
|---|
| 205 | option title 'Interface is a PPPoE connection' |
|---|
| 206 | |
|---|
| 207 | config enum |
|---|
| 208 | option variable 'network.interface.proto' |
|---|
| 209 | option value 'ppp' |
|---|
| 210 | option title 'Interface is a PPP connection' |
|---|
| 211 | |
|---|
| 212 | config variable |
|---|
| 213 | option name 'type' |
|---|
| 214 | option title 'Option type' |
|---|
| 215 | option section 'network.interface' |
|---|
| 216 | option type 'enum' |
|---|
| 217 | |
|---|
| 218 | config enum |
|---|
| 219 | option variable 'network.interface.type' |
|---|
| 220 | option value 'bridge' |
|---|
| 221 | option title 'This is a bridge interface' |
|---|
| 222 | |
|---|
| 223 | |
|---|
| 224 | |
|---|
| 225 | config section |
|---|
| 226 | option name 'alias' |
|---|
| 227 | option title 'Alias interface definition' |
|---|
| 228 | option package 'network' |
|---|
| 229 | list depends 'proto=static, ipaddr, netmask' |
|---|
| 230 | list depends 'proto=static, ip6addr' |
|---|
| 231 | option named 'true' |
|---|
| 232 | |
|---|
| 233 | config variable |
|---|
| 234 | option name 'interface' |
|---|
| 235 | option title 'Parent interface' |
|---|
| 236 | option section 'network.alias' |
|---|
| 237 | option valueof 'network.interface' |
|---|
| 238 | option required 'true' |
|---|
| 239 | |
|---|
| 240 | config variable |
|---|
| 241 | option name 'ipaddr' |
|---|
| 242 | option title 'IPv4 host address' |
|---|
| 243 | option section 'network.alias' |
|---|
| 244 | option datatype 'ip4addr' |
|---|
| 245 | |
|---|
| 246 | config variable |
|---|
| 247 | option name 'netmask' |
|---|
| 248 | option title 'IPv4 network mask' |
|---|
| 249 | option section 'network.alias' |
|---|
| 250 | option datatype 'ip4addr' |
|---|
| 251 | |
|---|
| 252 | config variable |
|---|
| 253 | option name 'gateway' |
|---|
| 254 | option title 'IPv4 gateway' |
|---|
| 255 | option section 'network.alias' |
|---|
| 256 | option datatype 'ip4addr' |
|---|
| 257 | |
|---|
| 258 | config variable |
|---|
| 259 | option name 'bcast' |
|---|
| 260 | option title 'IPv4 broadcast address' |
|---|
| 261 | option section 'network.alias' |
|---|
| 262 | option datatype 'ip4addr' |
|---|
| 263 | |
|---|
| 264 | config variable |
|---|
| 265 | option name 'ip6addr' |
|---|
| 266 | option title 'IPv6 address (CIDR)' |
|---|
| 267 | option section 'network.alias' |
|---|
| 268 | option datatype 'ip6addr' |
|---|
| 269 | |
|---|
| 270 | config variable |
|---|
| 271 | option name 'ip6gw' |
|---|
| 272 | option title 'IPv6 gateway' |
|---|
| 273 | option section 'network.alias' |
|---|
| 274 | option datatype 'ip6addr' |
|---|
| 275 | |
|---|
| 276 | config variable |
|---|
| 277 | option name 'dns' |
|---|
| 278 | option title 'DNS server (IPv4 or IPv6)' |
|---|
| 279 | option section 'network.alias' |
|---|
| 280 | option datatype 'ipaddr' |
|---|
| 281 | |
|---|
| 282 | config variable |
|---|
| 283 | option name 'proto' |
|---|
| 284 | option title 'Protocol' |
|---|
| 285 | option section 'network.alias' |
|---|
| 286 | option type 'enum' |
|---|
| 287 | option required 'true' |
|---|
| 288 | |
|---|
| 289 | config enum |
|---|
| 290 | option variable 'network.alias.proto' |
|---|
| 291 | option value 'static' |
|---|
| 292 | option title 'Interface has static network configuration' |
|---|
| 293 | |
|---|
| 294 | |
|---|
| 295 | |
|---|
| 296 | config section |
|---|
| 297 | option name 'route' |
|---|
| 298 | option title 'Static route definition' |
|---|
| 299 | option package 'network' |
|---|
| 300 | |
|---|
| 301 | config variable |
|---|
| 302 | option name 'interface' |
|---|
| 303 | option title 'Interface' |
|---|
| 304 | option section 'network.route' |
|---|
| 305 | option valueof 'network.interface' |
|---|
| 306 | option required 'true' |
|---|
| 307 | |
|---|
| 308 | config variable |
|---|
| 309 | option name 'target' |
|---|
| 310 | option title 'Target IPv4 host or network' |
|---|
| 311 | option section 'network.route' |
|---|
| 312 | option datatype 'ip4addr' |
|---|
| 313 | option required 'true' |
|---|
| 314 | |
|---|
| 315 | config variable |
|---|
| 316 | option name 'netmask' |
|---|
| 317 | option title 'Target IPv4 netmask' |
|---|
| 318 | option section 'network.route' |
|---|
| 319 | option datatype 'ip4addr' |
|---|
| 320 | |
|---|
| 321 | config variable |
|---|
| 322 | option name 'gateway' |
|---|
| 323 | option title 'IPv4 gateway' |
|---|
| 324 | option section 'network.route' |
|---|
| 325 | option datatype 'ip4addr' |
|---|
| 326 | option required 'true' |
|---|
| 327 | |
|---|
| 328 | |
|---|
| 329 | |
|---|
| 330 | config section |
|---|
| 331 | option name 'switch' |
|---|
| 332 | option title 'Section switch' |
|---|
| 333 | option package 'network' |
|---|
| 334 | option named 'true' |
|---|
| 335 | option dynamic 'true' |
|---|
| 336 | option required 'true' |
|---|