diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-29 03:06:38 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-12-03 13:47:58 -0200 |
| commit | db2038c7827f4214059481b0551c98d65178cef5 (patch) | |
| tree | a6d4ebba56e94ab17370cbe25decd3b810468b30 /ripngd/ripngd.h | |
| parent | 22e8c7ae642026865234741b9a9bb50df79378bf (diff) | |
ripngd: retrofit the 'redistribute' commands to the new northbound model
Trivial conversion. As usual, combine multiple DEFUNs into a single
DEFPY for simplicity.
As a bonus of the northbound conversion, this commit fixes the
redistribution of certain protocols into ripngd. The 'redist_type'
array used by the "redistribute" commands was terribly outdated,
which was preventing the CLI to parse correctly certain protocols
like isis and babel.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripngd/ripngd.h')
| -rw-r--r-- | ripngd/ripngd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h index 78215d0edd..f18c9758e9 100644 --- a/ripngd/ripngd.h +++ b/ripngd/ripngd.h @@ -136,8 +136,8 @@ struct ripng { struct { char *name; struct route_map *map; - int metric_config; - uint32_t metric; + bool metric_config; + uint8_t metric; } route_map[ZEBRA_ROUTE_MAX]; }; @@ -366,6 +366,8 @@ extern void ripng_terminate(void); extern void zebra_init(struct thread_master *); extern void ripng_zebra_stop(void); extern void ripng_zclient_reset(void); +extern void ripng_redistribute_conf_update(int type); +extern void ripng_redistribute_conf_delete(int type); extern void ripng_peer_init(void); extern void ripng_peer_update(struct sockaddr_in6 *, uint8_t); @@ -405,7 +407,7 @@ extern void ripng_zebra_ipv6_delete(struct agg_node *node); extern void ripng_redistribute_clean(void); extern int ripng_redistribute_check(int); -extern void ripng_redistribute_write(struct vty *, int); +extern void ripng_redistribute_write(struct vty *); extern int ripng_write_rte(int num, struct stream *s, struct prefix_ipv6 *p, struct in6_addr *nexthop, uint16_t tag, |
