diff options
| author | vdhingra <vdhingra@vmware.com> | 2020-04-24 05:38:43 -0700 |
|---|---|---|
| committer | vdhingra <vdhingra@vmware.com> | 2020-07-16 08:33:00 -0700 |
| commit | 88fa5104a04af60b7d1107f02ee84fb9c0a15abe (patch) | |
| tree | c2bbeecd9a5c384b7a615032c5fe13a1ff495c36 /lib/srcdest_table.c | |
| parent | 7441ea1afd4400ca74f97138e20e4ffb9f0b125e (diff) | |
staticd : Configuration northbound implementation
1. Modifies the data structs to make the distance, tag and table-id
property of a route, i.e created a hireachical data struct to save
route and nexthop information.
2. Backend northbound implementation
Signed-off-by: VishalDhingra <vdhingra@vmware.com>
Diffstat (limited to 'lib/srcdest_table.c')
| -rw-r--r-- | lib/srcdest_table.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/srcdest_table.c b/lib/srcdest_table.c index 66b735919b..8ffa0e9709 100644 --- a/lib/srcdest_table.c +++ b/lib/srcdest_table.c @@ -317,3 +317,13 @@ static ssize_t printfrr_rn(char *buf, size_t bsz, const char *fmt, srcdest2str(dst_p, (const struct prefix_ipv6 *)src_p, buf, bsz); return 2; } + +struct route_table *srcdest_srcnode_table(struct route_node *rn) +{ + if (rnode_is_dstnode(rn)) { + struct srcdest_rnode *srn = srcdest_rnode_from_rnode(rn); + + return srn->src_table; + } + return NULL; +} |
