summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhongfeng <guozhongfeng.gzf@alibaba-inc.com>2023-07-14 16:08:50 +0800
committerguozhongfeng <guozhongfeng.gzf@alibaba-inc.com>2023-07-16 17:52:31 +0800
commit1193611f8ea9d2e38d40f17770f8ca1fbfa88ef9 (patch)
treef114ac671545e56eff478869d0208a46ccf8ab43
parent88236d4e952fa05274d5464236a8df4727a6a1c7 (diff)
zebra: The command ipv6 nht xxx not work
If the command is ipv6 nht protocol route-map rmap, this parameter should use AFI_IP6 Signed-off-by: guozhongfeng <guozhongfeng.gzf@alibaba-inc.com>
-rw-r--r--zebra/zebra_routemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c
index 142501b149..eb94e26c30 100644
--- a/zebra/zebra_routemap.c
+++ b/zebra/zebra_routemap.c
@@ -367,7 +367,7 @@ static int ip_nht_rm_add(struct zebra_vrf *zvrf, const char *rmap, int rtype,
route_map_counter_increment(NHT_RM_MAP(zvrf, afi, rtype));
if (NHT_RM_MAP(zvrf, afi, rtype))
- zebra_evaluate_rnh(zvrf, AFI_IP, 1, NULL, SAFI_UNICAST);
+ zebra_evaluate_rnh(zvrf, afi, 1, NULL, SAFI_UNICAST);
return CMD_SUCCESS;
}
@@ -388,7 +388,7 @@ static int ip_nht_rm_del(struct zebra_vrf *zvrf, const char *rmap, int rtype,
zvrf->vrf->vrf_id, rtype);
NHT_RM_MAP(zvrf, afi, rtype) = NULL;
- zebra_evaluate_rnh(zvrf, AFI_IP, 1, NULL, SAFI_UNICAST);
+ zebra_evaluate_rnh(zvrf, afi, 1, NULL, SAFI_UNICAST);
}
XFREE(MTYPE_ROUTE_MAP_NAME, NHT_RM_NAME(zvrf, afi, rtype));
}
@@ -1703,7 +1703,7 @@ static void zebra_nht_rm_update(const char *rmap)
afi_ipv6 = 1;
zebra_evaluate_rnh(
- zvrf, AFI_IP, 1, NULL,
+ zvrf, AFI_IP6, 1, NULL,
SAFI_UNICAST);
}
}