Commit 134728b
committed
northbound: replace callback-based model with struct-based model
Refactor the northbound layer to move away from a callback-based
design and implement YANG-related logic directly on the
auto-generated YANG structs. This ensures that when a YANG module
is added or modified, the code must be updated accordingly or it
will fail to compile. Previously, missing callbacks went unnoticed
at build time and were only detected at daemon startup.
This change applies to YANG-modeled state and RPCs. Configuration
handling will be refactored separately.
As a positive side effect, implementing logic directly on YANG
structs results in cleaner code compared to callbacks initialized
via the builder pattern.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>1 parent c428bbc commit 134728b
File tree
86 files changed
+9025
-9293
lines changed- holo-bfd
- src/northbound
- holo-bgp
- src/northbound
- holo-daemon/src/northbound
- holo-igmp
- src/northbound
- holo-interface
- src/northbound
- holo-isis
- src
- northbound
- packet
- holo-keychain
- src/northbound
- holo-ldp
- src/northbound
- holo-northbound
- src
- yang_codegen
- holo-ospf
- src/northbound
- holo-policy
- src/northbound
- holo-rip
- src/northbound
- holo-routing
- src/northbound
- holo-system
- src/northbound
- holo-tools
- src
- holo-vrrp
- src/northbound
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+9025
-9293
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
9 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 10 | + | |
22 | 11 | | |
23 | 12 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 13 | + | |
27 | 14 | | |
0 commit comments