Bug 240689 - usr.sbin/ngctl: Generate more compact GraphWiz output
Summary: usr.sbin/ngctl: Generate more compact GraphWiz output
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-09-19 15:08 UTC by lutz
Modified: 2019-10-10 12:25 UTC (History)
1 user (show)

See Also:


Attachments
Patch for usr.sbin/ngctl/dot.c (5.46 KB, patch)
2019-09-19 15:08 UTC, lutz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lutz 2019-09-19 15:08:14 UTC
Created attachment 207627 [details]
Patch for usr.sbin/ngctl/dot.c

The output of "ngctl dot" is suitable for small netgraph networks. Even moderate complex netgraph setups (about a dozen nodes) are hard to understand from the .dot output, because each node and each hook are shown as a full blown structure.

This patch allows to generate much more compact output and graphs by omitting the extra structures for the individual hooks. Instead the names of the hooks are labels to the edges.
Comment 1 lutz 2019-10-10 12:25:45 UTC
Comment on attachment 207627 [details]
Patch for usr.sbin/ngctl/dot.c

Moved to https://reviews.freebsd.org/D21965