diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2025-01-27 18:18:24 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2025-01-28 15:40:17 +0100 |
| commit | 3671ce36fdcc1b74972d188250397da4e3b19f6d (patch) | |
| tree | d0da324a414bdd754ef3a61aa3138d9f40816e17 /lib/srcdest_table.h | |
| parent | 1d341d461e8549524f9054534fb20cec7b7c967d (diff) | |
staticd: fix botched staticd YANG for dst-src
The staticd YANG conversion completely f*cked up dst-src routes.
Stupidly enough, the correct thing is much simpler as seen by the amount
of deletes in this commit.
This does, unfortunately, involve a rather annoying YANG edge case with
what should reasonably be an optional leaf as part of a list key, which
is not possible. It uses `::/0` as unconditional filler instead, since
that is semantically correct.
The `test_yang_mgmt` topotest needed to be adjusted after this to add
`src-prefix='::/0'`.
Fixes: 88fa5104a04a ("staticd : Configuration northbound implementation")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/srcdest_table.h')
| -rw-r--r-- | lib/srcdest_table.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/srcdest_table.h b/lib/srcdest_table.h index ff97f9b735..a699d4a11b 100644 --- a/lib/srcdest_table.h +++ b/lib/srcdest_table.h @@ -87,8 +87,6 @@ static inline void *srcdest_rnode_table_info(struct route_node *rn) return route_table_get_info(srcdest_rnode_table(rn)); } -extern struct route_table *srcdest_srcnode_table(struct route_node *rn); - #ifdef __cplusplus } #endif |
