Routing: use 'l3_device' instead of 'device' to find the corresponding interface for dynamic routes

This commit is contained in:
Amin Ben Ramdhane 2021-02-06 22:21:57 +01:00
parent a3afc20ea8
commit 54e296a989

View file

@ -313,7 +313,7 @@ static int dmmap_synchronizeRoutingRouterIPv4Forwarding(struct dmctx *dmctx, DMN
fclose(fp);
return 0;
}
str = dmjson_get_value(jobj, 1, "device");
str = dmjson_get_value(jobj, 1, "l3_device");
if (strcmp(str, proute.iface) == 0) {
iface = section_name(s);
break;