mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 15:30:26 +00:00 
			
		
		
		
	The present "show ip[v6] [m]route [xxx]" and "show ip rpf [xxx]"
commands now show routes only in the default VRF.
A new option is introduced to show routes in a specified VRF:
    show ip[v6] [m]route [xxx] vrf N
    show ip rpf [xxx] vrf N
and a new option is used to show routes through all VRFs:
    show ip[v6] [m]route [xxx] vrf all
    show ip rpf [xxx] vrf all
Signed-off-by: Feng Lu <lu.feng@6wind.com>
Reviewed-by: Alain Ritoux <alain.ritoux@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
[DL: conflicts resolved]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Conflicts:
	zebra/zebra_vty.c
Conflicts:
	nhrpd/nhrp_interface.c
	zebra/zebra_rib.c
	zebra/zebra_rnh_null.c
	zebra/zebra_vty.c
		
	
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			555 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			555 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <zebra.h>
 | 
						|
#include "zebra/rib.h"
 | 
						|
#include "zebra/zserv.h"
 | 
						|
#include "zebra/zebra_rnh.h"
 | 
						|
 | 
						|
int zebra_rnh_ip_default_route = 0;
 | 
						|
int zebra_rnh_ipv6_default_route = 0;
 | 
						|
 | 
						|
int zebra_evaluate_rnh (vrf_id_t vrfid, int family, int force, rnh_type_t type,
 | 
						|
		        struct prefix *p)
 | 
						|
{ return 0; }
 | 
						|
 | 
						|
void zebra_print_rnh_table (vrf_id_t vrfid, int family, struct vty *vty,
 | 
						|
			    rnh_type_t type)
 | 
						|
{}
 | 
						|
 | 
						|
void zebra_register_rnh_static_nh(struct prefix *p, struct route_node *rn)
 | 
						|
{}
 | 
						|
 | 
						|
void zebra_deregister_rnh_static_nh(struct prefix *p, struct route_node *rn)
 | 
						|
{}
 |