Commit 8966c0d
schema: fix type extensions
The ext_size field has been removed, we need to use LY_ARRAY_COUNT now.
It fixes the following error when calling type.extensions():
> File "/(...)/.venv/src/libyang/libyang/schema.py", line 579, in extensions
> for i in range(self.cdata.ext_size):
> AttributeError: cdata 'struct lysc_type *' has no field 'ext_size'
Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>1 parent 92c682f commit 8966c0d
File tree
4 files changed
+21
-6
lines changed- libyang
- tests
- yang
- omg
- yolo
4 files changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 579 | + | |
| 580 | + | |
584 | 581 | | |
585 | 582 | | |
586 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
404 | 414 | | |
405 | 415 | | |
406 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments