It is possible there is no ip address in type2 prefix, that leads to crash in
`build_evpn_type2_prefix()`.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
safi_t safi;
json_object *json_paths = NULL;
struct ethaddr empty_mac = {};
+ struct ipaddr empty_ip = {};
const struct prefix_evpn *evp;
afi = AFI_L2VPN;
return;
}
- build_evpn_type2_prefix(&p, mac ? mac : &empty_mac, ip);
+ build_evpn_type2_prefix(&p, mac ? mac : &empty_mac,
+ ip ? ip : &empty_ip);
/* See if route exists. Look for both non-sticky and sticky. */
dest = bgp_evpn_vni_node_lookup(vpn, &p, NULL);