interface-file: map ppp-provider

This commit is contained in:
Ariadne Conill 2020-08-19 06:03:48 -06:00
parent aa11601893
commit 823544aace

View file

@ -25,7 +25,8 @@ struct remap_token {
}; };
static const struct remap_token tokens[] = { static const struct remap_token tokens[] = {
{"vrf", "vrf-member"} {"provider", "ppp-provider"}, /* legacy ifupdown, ifupdown2 */
{"vrf", "vrf-member"},
}; };
static int static int
@ -119,6 +120,10 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename)
cur_iface->is_dhcp = true; cur_iface->is_dhcp = true;
lif_dict_add(&cur_iface->vars, "use", strdup("dhcp")); lif_dict_add(&cur_iface->vars, "use", strdup("dhcp"));
} }
else if (!strcmp(token, "ppp"))
{
lif_dict_add(&cur_iface->vars, "use", strdup("ppp"));
}
else if (!strcmp(token, "inherits")) else if (!strcmp(token, "inherits"))
{ {
token = lif_next_token(&bufp); token = lif_next_token(&bufp);