ifquery: display template interfaces as templates, not as iface

This commit is contained in:
Ariadne Conill 2020-09-23 11:35:27 -06:00
parent 5c5c316ebf
commit 41a71173d1

View file

@ -30,7 +30,7 @@ print_interface(struct lif_interface *iface)
if (iface->is_auto) if (iface->is_auto)
printf("auto %s\n", iface->ifname); printf("auto %s\n", iface->ifname);
printf("iface %s\n", iface->ifname); printf("%s %s\n", iface->is_template ? "template" : "iface", iface->ifname);
struct lif_node *iter; struct lif_node *iter;
LIF_DICT_FOREACH(iter, &iface->vars) LIF_DICT_FOREACH(iter, &iface->vars)