Commit graph

37 commits

Author SHA1 Message Date
Ariadne Conill
e300867d26 ifquery: add ifquery --running
this is like ifquery --state except it dumps only the running interface names
2020-10-14 02:44:00 -06:00
Maximilian Wilhelm
02324bebd5 Move handling of address/netmask pairs from ifquery into library.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-14 01:24:33 +02:00
Ariadne Conill
4c354ebf35 ifquery: implement more robust loop breaking strategy 2020-10-08 02:17:13 -06:00
Ariadne Conill
5615c30fd0 ifquery: don't build the dependency tree when querying for an interface's properties 2020-09-25 08:43:26 -06:00
Ariadne Conill
41a71173d1 ifquery: display template interfaces as templates, not as iface 2020-09-23 11:35:27 -06:00
Ariadne Conill
258e2e8a52 lifecycle: return the maximum tree depth for the dependency tree when counting depth 2020-09-09 18:12:13 -06:00
Ariadne Conill
2569503afa lifecycle: add lif_lifecycle_count_rdepends(), which calculates reverse dependency depth 2020-09-09 17:39:26 -06:00
Ariadne Conill
a5eebda391 ifquery: include reverse dependency count in dot output 2020-09-09 17:14:58 -06:00
Ariadne Conill
8e4eb5d00c state: migrate to lif_state_record from a bare dictionary containing the mapped ifs 2020-09-08 14:59:58 -06:00
Ariadne Conill
3b10494b40 change lif_interface.is_up to lif_interface.refcount 2020-09-08 14:41:25 -06:00
Ariadne Conill
df9c0284b1 interface-file: let commands initialize the interface collection themselves 2020-08-20 03:45:56 -06:00
Ariadne Conill
b9efc841a3 Merge branch 'feature/refactor-opts' into master 2020-08-18 14:40:50 -06:00
Ariadne Conill
520b831bdf cmd: add manpage xrefs where we have manpages already 2020-08-18 14:14:33 -06:00
A. Wilcox
327e738a55
Refactor how options are handled 2020-08-17 14:59:19 -05:00
Ariadne Conill
fda7bfae57 ifquery: use generic_usage() instead of ifquery_usage() 2020-08-11 23:10:35 -06:00
Ariadne Conill
f6d9f65248 ifquery: port to use option groups 2020-08-11 23:03:55 -06:00
Ariadne Conill
fdfe8ac080 multicall: migrate execution options to common code 2020-08-11 22:52:15 -06:00
Ariadne Conill
52509c508c multicall: migrate match options to shared collection 2020-08-11 22:37:36 -06:00
Ariadne Conill
b817bdb999 multicall: move match_options to a common include 2020-08-11 22:12:37 -06:00
Ariadne Conill
ebd04cafda commands: refactor applet_usage functions to take a status code (ref #16) 2020-08-11 20:44:04 -06:00
Ariadne Conill
072c1ea148 ifquery: build full dependency tree when in dot mode 2020-08-04 12:36:38 -06:00
Ariadne Conill
fb5ff4eac2 lifecycle: add support for learning dependents from executors (ref #5) 2020-07-28 13:46:25 -06:00
Ariadne Conill
052156ac09 ifquery: add --property (ref #4) 2020-07-26 02:28:29 -06:00
Ariadne Conill
16af3755e0 use "use loopback" hint instead of "inet loopback", same with dhcp 2020-07-24 05:00:49 -06:00
Ariadne Conill
8714dab11d multicall: expose argv0, use in applets 2020-07-24 04:52:15 -06:00
Ariadne Conill
8138ca8485 ifquery: add --dot to visualize a calculated solution 2020-07-24 04:25:06 -06:00
Ariadne Conill
1a9fd7a0cc convert to multicall binary 2020-07-24 03:07:29 -06:00
Ariadne Conill
09057aa977 fix up tests 2020-07-20 08:24:31 -06:00
Ariadne Conill
aa1cc0815c add a bunch more of the state stuff 2020-07-20 08:19:23 -06:00
Ariadne Conill
6904e2ef37 ifquery: usage(): use stderr 2020-07-19 00:05:12 -06:00
Ariadne Conill
1a650a126e ifquery: add --pretty-print 2020-07-18 19:35:02 -06:00
Ariadne Conill
cd2d35c6a2 ifquery: implement --include and --exclude 2020-07-18 19:31:44 -06:00
Ariadne Conill
9eea60986a ifquery: implement --list 2020-07-18 19:26:20 -06:00
Ariadne Conill
c189467707 add ifquery --version 2020-07-18 19:09:08 -06:00
Ariadne Conill
32560de5ca add stub lif_interface_file_parse() 2020-07-18 18:02:25 -06:00
Ariadne Conill
7c068e493d ifquery: expand a bit 2020-07-18 17:44:58 -06:00
Ariadne Conill
817963b586 cmd: start work on an ifquery command 2020-07-18 04:49:22 -06:00