From 823544aace9639a88a23d71b89694ba4c1eef496 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 19 Aug 2020 06:03:48 -0600 Subject: [PATCH] interface-file: map ppp-provider --- libifupdown/interface-file.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libifupdown/interface-file.c b/libifupdown/interface-file.c index b59ca8a..82a3328 100644 --- a/libifupdown/interface-file.c +++ b/libifupdown/interface-file.c @@ -25,7 +25,8 @@ struct remap_token { }; static const struct remap_token tokens[] = { - {"vrf", "vrf-member"} + {"provider", "ppp-provider"}, /* legacy ifupdown, ifupdown2 */ + {"vrf", "vrf-member"}, }; static int @@ -119,6 +120,10 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename) cur_iface->is_dhcp = true; 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")) { token = lif_next_token(&bufp);