change lif_interface.is_up to lif_interface.refcount
This commit is contained in:
parent
30fa4c4a2e
commit
3b10494b40
4 changed files with 7 additions and 7 deletions
|
@ -63,7 +63,7 @@ print_interface_dot(struct lif_dict *collection, struct lif_interface *iface, st
|
|||
if (!lif_lifecycle_query_dependents(&exec_opts, iface, iface->ifname))
|
||||
return;
|
||||
|
||||
if (iface->is_up)
|
||||
if (iface->refcount > 0)
|
||||
return;
|
||||
|
||||
if (parent != NULL)
|
||||
|
@ -87,7 +87,7 @@ print_interface_dot(struct lif_dict *collection, struct lif_interface *iface, st
|
|||
struct lif_interface *child_if = lif_interface_collection_find(collection, tokenp);
|
||||
|
||||
print_interface_dot(collection, child_if, iface);
|
||||
child_if->is_up = true;
|
||||
child_if->refcount++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue