Commit dbfadf2
committed
Fix: load plugins before initializing device data
Plugins were loaded after the device data inheritance has already
been processed, forcing us to declare device features for every
child device in device families like junos/ios.
This "simple" change in initialization sequence loads plugins
(and their default settings) before the device features are inherited,
making it easy to specify a single feature entry covering the whole
family of devices.
Please note that this change also requires daemon features to be
defined under 'daemons' not 'devices' (the 'daemons' parameters
are copied into 'devices' parameters during device initialization)1 parent c99b479 commit dbfadf2
2 files changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
21 | 34 | | |
| 35 | + | |
22 | 36 | | |
23 | 37 | | |
24 | 38 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
28 | 42 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | | - | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments