diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-07-03 17:15:05 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-07-12 14:06:00 +0200 |
| commit | 2150647069903840ef76353a5085eb5afc96cfaf (patch) | |
| tree | b11af3cd650d0c7743e858d78d443a94fbd200d8 /isisd/isis_redist.h | |
| parent | 6934a1d31d832e423376c49a10646dd9f4336cd3 (diff) | |
isisd: add redistribute table identifier in nb configuration
The yang model does not handle the table identifier in IS-IS.
For each redistributed each address family, a new list of
table elements is added to store the table identifier to
redistribute, and also the optional metric and route-map values
for each table identifier.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'isisd/isis_redist.h')
| -rw-r--r-- | isisd/isis_redist.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/isisd/isis_redist.h b/isisd/isis_redist.h index ae5ec2b3b3..eb82f3083a 100644 --- a/isisd/isis_redist.h +++ b/isisd/isis_redist.h @@ -28,6 +28,14 @@ struct isis_redist { struct route_map *map; }; +struct isis_redist_table_present_args { + /* from filter.h, struct acl_dup_args */ + const char *rtda_ip; + const char *rtda_level; + const char *rtda_table; + bool rtda_found; +}; + struct isis; struct isis_area; struct prefix; @@ -53,4 +61,9 @@ void isis_redist_set(struct isis_area *area, int level, int family, int type, void isis_redist_unset(struct isis_area *area, int level, int family, int type); void isis_redist_free(struct isis *isis); + +bool isis_redist_table_is_present(const struct vty *vty, + struct isis_redist_table_present_args *rtda); +uint16_t isis_redist_table_get_first(const struct vty *vty, + struct isis_redist_table_present_args *rtda); #endif |
