diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-21 23:37:24 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 07:51:41 -0400 | 
| commit | 26a3ffd60e437e66a0762c4f399eebf19ad84a4a (patch) | |
| tree | f95029ad2fb8347f4d2171320eacfffb5af6e484 /ripngd/ripng_interface.c | |
| parent | 5a1ae2c237777c6a5a909b89b302cb9c70825092 (diff) | |
bgpd, lib, ripngd: Add agg_node_get_prefix
Modify code to use lookup function agg_node_get_prefix()
as the abstraction layer.  When we rework bgp_node to
bgp_dest this will allow us to greatly limit the amount
of work needed to do that.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ripngd/ripng_interface.c')
| -rw-r--r-- | ripngd/ripng_interface.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index 6a30c07d99..25d9ed2b9e 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -867,17 +867,12 @@ int ripng_network_write(struct vty *vty, struct ripng *ripng)  	unsigned int i;  	const char *ifname;  	struct agg_node *node; -	char buf[BUFSIZ];  	/* Write enable network. */  	for (node = agg_route_top(ripng->enable_network); node;  	     node = agg_route_next(node)) -		if (node->info) { -			struct prefix *p = &node->p; -			vty_out(vty, "    %s/%d\n", -				inet_ntop(p->family, &p->u.prefix, buf, BUFSIZ), -				p->prefixlen); -		} +		if (node->info) +			vty_out(vty, "    %pRN\n", node);  	/* Write enable interface. */  	for (i = 0; i < vector_active(ripng->enable_if); i++)  | 
