2017-9-6-luci Analysis
Posted nicephil
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2017-9-6-luci Analysis相关的知识,希望对你有一定的参考价值。
2017-9-6-luci Analysis
modules
-
luci.model.uci
-
luci.model.network
-
luci.util
-
luci.cbi
-
luci.template
-
ubus call network.interface.wan status
- {
- "up": true,
- "pending": false,
- "available": true,
- "autostart": true,
- "uptime": 67646,
- "l3_device": "pppoe-wan",
- "proto": "pppoe",
- "device": "eth0.2",
- "updated": [
- "addresses",
- "routes"
- ],
- "metric": 0,
- "delegation": true,
- "ipv4-address": [
- {
- "address": "10.104.60.163",
- "mask": 32
- }
- ],
- "ipv6-address": [
-
- ],
- "ipv6-prefix": [
-
- ],
- "ipv6-prefix-assignment": [
-
- ],
- "route": [
- {
- "target": "0.0.0.0",
- "mask": 0,
- "nexthop": "10.104.0.1",
- "source": "0.0.0.0\\/0"
- }
- ],
- "dns-server": [
- "211.140.13.188",
- "211.140.188.188"
- ],
- "dns-search": [
-
- ],
- "inactive": {
- "ipv4-address": [
-
- ],
- "ipv6-address": [
-
- ],
- "route": [
-
- ],
- "dns-server": [
-
- ],
- "dns-search": [
-
- ]
- },
- "data": {
-
- }
- }
-
- ubus call network.device status
-
- {
- "br-lan": {
- "external": false,
- "present": true,
- "type": "Bridge",
- "up": true,
- "carrier": true,
- "bridge-members": [
- "eth0.1",
- "ra0"
- ],
- "mtu": 1500,
- "macaddr": "54:36:9b:1c:27:47",
- "txqueuelen": 0,
- "ipv6": true,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 479772195,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 1481931,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 1976848,
- "rx_errors": 0,
- "tx_bytes": 2241546625,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "eth0": {
- "external": false,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "mtu": 1500,
- "macaddr": "54:36:9b:1c:27:47",
- "txqueuelen": 1000,
- "ipv6": true,
- "statistics": {
- "collisions": 0,
- "rx_frame_errors": 0,
- "tx_compressed": 0,
- "multicast": 0,
- "rx_length_errors": 0,
- "tx_dropped": 0,
- "rx_bytes": 2598313278,
- "rx_missed_errors": 0,
- "tx_errors": 0,
- "rx_compressed": 0,
- "rx_over_errors": 0,
- "tx_fifo_errors": 0,
- "rx_crc_errors": 0,
- "rx_packets": 2998486,
- "tx_heartbeat_errors": 0,
- "rx_dropped": 0,
- "tx_aborted_errors": 0,
- "tx_packets": 2593532,
- "rx_errors": 0,
- "tx_bytes": 1846900606,
- "tx_window_errors": 0,
- "rx_fifo_errors": 0,
- "tx_carrier_errors": 0
- }
- },
- "lo": {
- "external": false,
- "present": true,
- "type": "Network device",
- "up": true,
- "carrier": true,
- "mtu": 65536,
- "macaddr": "00:00:00:00:00:00",
- "txqueuelen": 0,
- "ipv6": true,
- "statistics": {