mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 20:59:36 +00:00
Zebra: Fix IPv6 static route config in a VRF
When configuring an IPv6 static route with the nexthop as a link-local IPv6 address, the associated interface has to be looked up in the correct VRF. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Ticket: CM-10169 Reviewed By: CCR-4382 Testing Done: Manual
This commit is contained in:
parent
1d75f88306
commit
21efedebd9
@ -3401,6 +3401,10 @@ static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str,
|
|||||||
nexthop address other case gate is treated as interface name. */
|
nexthop address other case gate is treated as interface name. */
|
||||||
ret = inet_pton (AF_INET6, gate_str, &gate_addr);
|
ret = inet_pton (AF_INET6, gate_str, &gate_addr);
|
||||||
|
|
||||||
|
/* VRF id */
|
||||||
|
if (vrf_id_str)
|
||||||
|
VRF_GET_ID (vrf_id, vrf_id_str);
|
||||||
|
|
||||||
if (ifname)
|
if (ifname)
|
||||||
{
|
{
|
||||||
/* When ifname is specified. It must be come with gateway
|
/* When ifname is specified. It must be come with gateway
|
||||||
@ -3440,10 +3444,6 @@ static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* VRF id */
|
|
||||||
if (vrf_id_str)
|
|
||||||
VRF_GET_ID (vrf_id, vrf_id_str);
|
|
||||||
|
|
||||||
if (add_cmd)
|
if (add_cmd)
|
||||||
static_add_ipv6 (&p, type, gate, ifindex, flag, tag, distance, vrf_id);
|
static_add_ipv6 (&p, type, gate, ifindex, flag, tag, distance, vrf_id);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user