diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-04 02:14:18 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-04-04 03:24:42 +0200 |
commit | 10dad4242a63a221fdd0b51499a10a026658642d (patch) | |
tree | 3193af6ca360dabc88e472973f84d680a200c752 /zebra/zebra_vty.c | |
parent | Merge pull request #323 from LabNConsulting/working/master/patch/install1 (diff) | |
download | frr-10dad4242a63a221fdd0b51499a10a026658642d.tar.xz frr-10dad4242a63a221fdd0b51499a10a026658642d.zip |
zebra: fix v4/v6 typos in some show commands
This fixes a few problems like this one:
vtysh# show ipv6 route ospf6
Unknown route type
Also, replace SAFI_UNICAST with SAFI_MULTICAST in the "show ipv6 mroute
vrf all" command.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index ffc075f43..35aa69cc9 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -3143,7 +3143,7 @@ DEFUN (show_ipv6_route_protocol, VRF_GET_ID (vrf_id, argv[idx]->arg); char *proto = argv[argc - 1]->text; - type = proto_redistnum (AFI_IP, proto); + type = proto_redistnum (AFI_IP6, proto); if (type < 0) { @@ -3431,7 +3431,7 @@ DEFUN (show_ipv6_route_vrf_all_tag, RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { if ((zvrf = vrf->info) == NULL || - (table = zvrf->table[AFI_IP][SAFI_UNICAST]) == NULL) + (table = zvrf->table[AFI_IP6][SAFI_UNICAST]) == NULL) continue; /* Show all IPv6 routes with matching tag value. */ @@ -3541,7 +3541,7 @@ DEFUN (show_ipv6_route_vrf_all_protocol, int vrf_header = 1; char *proto = argv[argc - 1]->text; - type = proto_redistnum (AFI_IP, proto); + type = proto_redistnum (AFI_IP6, proto); if (type < 0) { @@ -3705,7 +3705,7 @@ DEFUN (show_ipv6_mroute_vrf_all, RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { if ((zvrf = vrf->info) == NULL || - (table = zvrf->table[AFI_IP6][SAFI_UNICAST]) == NULL) + (table = zvrf->table[AFI_IP6][SAFI_MULTICAST]) == NULL) continue; /* Show all IPv6 route. */ |