ifquery: build full dependency tree when in dot mode

This commit is contained in:
Ariadne Conill 2020-08-04 12:36:38 -06:00
parent 049af8b9fb
commit 072c1ea148

View file

@ -65,6 +65,9 @@ print_interface(struct lif_interface *iface)
void void
print_interface_dot(struct lif_dict *collection, struct lif_interface *iface, struct lif_interface *parent) print_interface_dot(struct lif_dict *collection, struct lif_interface *iface, struct lif_interface *parent)
{ {
if (!lif_lifecycle_query_dependents(&exec_opts, iface, iface->ifname))
return;
if (iface->is_up) if (iface->is_up)
return; return;