• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/firewall4/tests/mocks/ubus/network.interface~dump.json

  1 {
  2         "interface": [
  3                 {
  4                         "interface": "loopback",
  5                         "up": true,
  6                         "pending": false,
  7                         "available": true,
  8                         "autostart": true,
  9                         "dynamic": false,
 10                         "uptime": 89939,
 11                         "l3_device": "lo",
 12                         "proto": "static",
 13                         "device": "lo",
 14                         "updated": [
 15                                 "addresses"
 16                         ],
 17                         "metric": 0,
 18                         "dns_metric": 0,
 19                         "delegation": true,
 20                         "ipv4-address": [
 21                                 {
 22                                         "address": "127.0.0.1",
 23                                         "mask": 8
 24                                 }
 25                         ],
 26                         "ipv6-address": [
 27 
 28                         ],
 29                         "ipv6-prefix": [
 30 
 31                         ],
 32                         "ipv6-prefix-assignment": [
 33 
 34                         ],
 35                         "route": [
 36 
 37                         ],
 38                         "dns-server": [
 39 
 40                         ],
 41                         "dns-search": [
 42 
 43                         ],
 44                         "neighbors": [
 45 
 46                         ],
 47                         "inactive": {
 48                                 "ipv4-address": [
 49 
 50                                 ],
 51                                 "ipv6-address": [
 52 
 53                                 ],
 54                                 "route": [
 55 
 56                                 ],
 57                                 "dns-server": [
 58 
 59                                 ],
 60                                 "dns-search": [
 61 
 62                                 ],
 63                                 "neighbors": [
 64 
 65                                 ]
 66                         },
 67                         "data": {
 68 
 69                         }
 70                 },
 71                 {
 72                         "interface": "lan",
 73                         "up": true,
 74                         "pending": false,
 75                         "available": true,
 76                         "autostart": true,
 77                         "dynamic": false,
 78                         "uptime": 89940,
 79                         "l3_device": "br-lan",
 80                         "proto": "static",
 81                         "device": "br-lan",
 82                         "updated": [
 83                                 "addresses"
 84                         ],
 85                         "metric": 0,
 86                         "dns_metric": 0,
 87                         "delegation": true,
 88                         "ipv4-address": [
 89                                 {
 90                                         "address": "10.0.0.1",
 91                                         "mask": 24
 92                                 },
 93                                 {
 94                                         "address": "192.168.26.1",
 95                                         "mask": 24
 96                                 }
 97                         ],
 98                         "ipv6-address": [
 99 
100                         ],
101                         "ipv6-prefix": [
102 
103                         ],
104                         "ipv6-prefix-assignment": [
105                                 {
106                                         "address": "2001:db8:1000:1::",
107                                         "mask": 60,
108                                         "local-address": {
109                                                 "address": "2001:db8:1000:1::1",
110                                                 "mask": 60
111                                         }
112                                 },
113                                 {
114                                         "address": "fd63:e2f:f706:1::",
115                                         "mask": 60,
116                                         "local-address": {
117                                                 "address": "fd63:e2f:f706:1::1",
118                                                 "mask": 60
119                                         }
120                                 }
121                         ],
122                         "route": [
123 
124                         ],
125                         "dns-server": [
126 
127                         ],
128                         "dns-search": [
129 
130                         ],
131                         "neighbors": [
132 
133                         ],
134                         "inactive": {
135                                 "ipv4-address": [
136 
137                                 ],
138                                 "ipv6-address": [
139 
140                                 ],
141                                 "route": [
142 
143                                 ],
144                                 "dns-server": [
145 
146                                 ],
147                                 "dns-search": [
148 
149                                 ],
150                                 "neighbors": [
151 
152                                 ]
153                         },
154                         "data": {
155 
156                         }
157                 },
158                 {
159                         "interface": "guest",
160                         "up": true,
161                         "pending": false,
162                         "available": true,
163                         "autostart": true,
164                         "dynamic": false,
165                         "uptime": 89940,
166                         "l3_device": "br-guest",
167                         "proto": "static",
168                         "device": "br-guest",
169                         "updated": [
170                                 "addresses"
171                         ],
172                         "metric": 0,
173                         "dns_metric": 0,
174                         "delegation": true,
175                         "ipv4-address": [
176                                 {
177                                         "address": "10.1.0.1",
178                                         "mask": 24
179                                 },
180                                 {
181                                         "address": "192.168.27.1",
182                                         "mask": 24
183                                 }
184                         ],
185                         "ipv6-address": [
186 
187                         ],
188                         "ipv6-prefix": [
189 
190                         ],
191                         "ipv6-prefix-assignment": [
192                                 {
193                                         "address": "2001:db8:1000:2::",
194                                         "mask": 60,
195                                         "local-address": {
196                                                 "address": "2001:db8:1000:2::1",
197                                                 "mask": 60
198                                         }
199                                 },
200                                 {
201                                         "address": "fd63:e2f:f706:2::",
202                                         "mask": 60,
203                                         "local-address": {
204                                                 "address": "fd63:e2f:f706:2::1",
205                                                 "mask": 60
206                                         }
207                                 }
208                         ],
209                         "route": [
210 
211                         ],
212                         "dns-server": [
213 
214                         ],
215                         "dns-search": [
216 
217                         ],
218                         "neighbors": [
219 
220                         ],
221                         "inactive": {
222                                 "ipv4-address": [
223 
224                                 ],
225                                 "ipv6-address": [
226 
227                                 ],
228                                 "route": [
229 
230                                 ],
231                                 "dns-server": [
232 
233                                 ],
234                                 "dns-search": [
235 
236                                 ],
237                                 "neighbors": [
238 
239                                 ]
240                         },
241                         "data": {
242 
243                         }
244                 },
245                 {
246                         "interface": "wan",
247                         "up": true,
248                         "pending": false,
249                         "available": true,
250                         "autostart": true,
251                         "dynamic": false,
252                         "uptime": 35968,
253                         "l3_device": "pppoe-wan",
254                         "proto": "pppoe",
255                         "device": "eth1",
256                         "metric": 0,
257                         "dns_metric": 0,
258                         "delegation": true,
259                         "ipv4-address": [
260                                 {
261                                         "address": "10.11.12.194",
262                                         "mask": 24
263                                 }
264                         ],
265                         "ipv6-address": [
266 
267                         ],
268                         "ipv6-prefix": [
269 
270                         ],
271                         "ipv6-prefix-assignment": [
272 
273                         ],
274                         "route": [
275                                 {
276                                         "target": "0.0.0.0",
277                                         "mask": 0,
278                                         "nexthop": "10.11.12.13",
279                                         "source": "10.11.12.194/32"
280                                 }
281                         ],
282                         "dns-server": [
283                                 "10.11.12.13"
284                         ],
285                         "dns-search": [
286                                 "lan"
287                         ],
288                         "neighbors": [
289 
290                         ],
291                         "inactive": {
292                                 "ipv4-address": [
293 
294                                 ],
295                                 "ipv6-address": [
296 
297                                 ],
298                                 "route": [
299 
300                                 ],
301                                 "dns-server": [
302 
303                                 ],
304                                 "dns-search": [
305 
306                                 ],
307                                 "neighbors": [
308 
309                                 ]
310                         },
311                         "data": {
312 
313                         }
314                 },
315                 {
316                         "interface": "wan6",
317                         "up": true,
318                         "pending": false,
319                         "available": true,
320                         "autostart": true,
321                         "dynamic": false,
322                         "uptime": 16264,
323                         "l3_device": "pppoe-wan",
324                         "proto": "dhcpv6",
325                         "updated": [
326                                 "addresses",
327                                 "routes",
328                                 "prefixes"
329                         ],
330                         "metric": 0,
331                         "dns_metric": 0,
332                         "delegation": true,
333                         "ipv4-address": [
334 
335                         ],
336                         "ipv6-address": [
337                                 {
338                                         "address": "2001:db8:54:321::2",
339                                         "mask": 64
340                                 }
341                         ],
342                         "ipv6-prefix": [
343                                 {
344                                         "address": "2001:db8:1000::",
345                                         "mask": 48,
346                                         "class": "wan6",
347                                         "assigned": {
348                                                 "lan": {
349                                                         "address": "2001:db8:1000:1::",
350                                                         "mask": 60
351                                                 },
352                                                 "guest": {
353                                                         "address": "2001:db8:1000:2::",
354                                                         "mask": 60
355                                                 }
356                                         }
357                                 }
358                         ],
359                         "ipv6-prefix-assignment": [
360 
361                         ],
362                         "route": [
363                                 {
364                                         "target": "::",
365                                         "mask": 0,
366                                         "nexthop": "::",
367                                         "source": "2001:db8:1000::/48"
368                                 },
369                                 {
370                                         "target": "::",
371                                         "mask": 0,
372                                         "nexthop": "::",
373                                         "source": "2001:db8:54:321::2/64"
374                                 }
375                         ],
376                         "dns-server": [
377 
378                         ],
379                         "dns-search": [
380 
381                         ],
382                         "neighbors": [
383 
384                         ],
385                         "inactive": {
386                                 "ipv4-address": [
387 
388                                 ],
389                                 "ipv6-address": [
390 
391                                 ],
392                                 "route": [
393 
394                                 ],
395                                 "dns-server": [
396 
397                                 ],
398                                 "dns-search": [
399 
400                                 ],
401                                 "neighbors": [
402 
403                                 ]
404                         },
405                         "data": {
406 
407                         }
408                 },
409                 {
410                         "interface": "noaddr",
411                         "up": true,
412                         "pending": false,
413                         "available": true,
414                         "autostart": true,
415                         "dynamic": false,
416                         "uptime": 89940,
417                         "l3_device": "wwan0",
418                         "proto": "static",
419                         "device": "wwan0",
420                         "updated": [
421 
422                         ],
423                         "metric": 0,
424                         "dns_metric": 0,
425                         "delegation": true,
426                         "ipv4-address": [
427 
428                         ],
429                         "ipv6-address": [
430 
431                         ],
432                         "ipv6-prefix": [
433 
434                         ],
435                         "ipv6-prefix-assignment": [
436 
437                         ],
438                         "route": [
439 
440                         ],
441                         "dns-server": [
442 
443                         ],
444                         "dns-search": [
445 
446                         ],
447                         "neighbors": [
448 
449                         ],
450                         "inactive": {
451                                 "ipv4-address": [
452 
453                                 ],
454                                 "ipv6-address": [
455 
456                                 ],
457                                 "route": [
458 
459                                 ],
460                                 "dns-server": [
461 
462                                 ],
463                                 "dns-search": [
464 
465                                 ],
466                                 "neighbors": [
467 
468                                 ]
469                         },
470                         "data": {
471 
472                         }
473                 }
474         ]
475 }

This page was automatically generated by LXR 0.3.1.  •  OpenWrt