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
Maximilian Wilhelm
a3d11ded43
ifupdown: Be consistent in error messages.
...
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-25 02:26:21 +02:00
Maximilian Wilhelm
8dc2295006
ifupdown: Don't configure errornous interfaces.
...
Do not configure interfaces which have a configuration know to be broken.
Currently this only happens when using "inherit" to an non-existing iface
or to an iface and not a template, and having allow_any_iface_as_template
set to 0.
In those cases broken ifaces will not be configured unless ifup/ifdown is
invoked with --force.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-25 02:15:16 +02:00
Ariadne Conill
243a9b92ce
ifupdown: skip over template interfaces at warning time instead of letting lif_lifecycle_run() fail
2020-09-23 11:52:22 -06:00
Ariadne Conill
f9683c2242
ifupdown: complain to the user if they try to bring up or tear down a template interface
2020-09-23 11:42:09 -06:00
Ariadne Conill
41a71173d1
ifquery: display template interfaces as templates, not as iface
2020-09-23 11:35:27 -06:00
Ariadne Conill
b4e35c442e
multicall: load config file data as early as possible
2020-09-14 17:20:20 -06:00
Ariadne Conill
ceb82f4fd2
ifupdown: only display skip messages in verbose mode
2020-09-09 19:38:29 -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
885126174d
ifupdown: consistently update the state file when exiting
2020-09-09 14:18:16 -06:00
Ariadne Conill
b514d31c26
ifupdown: implement --force
2020-09-08 19:17:00 -06:00
Ariadne Conill
efe9b60e37
ifupdown: skip interface config/deconfig based on refcounts
2020-09-08 19:10:20 -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
68021bc652
Merge pull request #35 from ifupdown-ng/feature/bsearch-parsing
...
interface config parser rewrite
2020-08-24 04:41:06 -06:00
Ariadne Conill
72ad50213f
cmd: fix regression with ifdown -f handling
...
Alpine #11887
2020-08-24 02:19:01 -06:00
Ariadne Conill
df9c0284b1
interface-file: let commands initialize the interface collection themselves
2020-08-20 03:45:56 -06:00
Ariadne Conill
eeb40fc689
libifupdown: move ARRAY_SIZE() declaration from multicall
2020-08-19 01:58:41 -06:00
Ariadne Conill
b9efc841a3
Merge branch 'feature/refactor-opts' into master
2020-08-18 14:40:50 -06:00
Ariadne Conill
b084f1c99c
ifctrstat: add manpage xref
2020-08-18 14:36:35 -06:00
Ariadne Conill
0a3f1e33a8
ifctrstat: lower-case help text for program-specific options
2020-08-18 14:36:15 -06:00
Ariadne Conill
99571a4c03
ifctrstat: fix style issues
2020-08-18 14:20:55 -06:00
Ariadne Conill
520b831bdf
cmd: add manpage xrefs where we have manpages already
2020-08-18 14:14:33 -06:00
Ariadne Conill
e2959275b6
multicall: add ability for applets to specify a manpage reference
2020-08-18 14:12:34 -06:00
A. Wilcox
327e738a55
Refactor how options are handled
2020-08-17 14:59:19 -05:00
A. Wilcox
1a11bb768f
ifctrstat: Use new structure and recalculate binary size
2020-08-17 14:13:16 -05:00
A. Wilcox
7b45d3939d
ifctrstat: Add -n option to omit label printing
2020-08-14 14:27:23 -05:00
A. Wilcox
6106164d7c
ifctrstat: Add ability to output counter values
2020-08-14 11:29:04 -05:00
A. Wilcox
95d943ee44
ifctrstat: Misc style fixes
2020-08-14 11:28:14 -05:00
A. Wilcox
05e0ac139b
ifctrstat: Initial structure for new applet
2020-08-14 11:27:43 -05:00
Ariadne Conill
b30e0223d0
multicall: only enable applets actually compiled in
2020-08-12 16:57:40 -06:00
Ariadne Conill
f7d21d4b46
ifupdown: port to use option groups
2020-08-11 23:14:55 -06: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
f871002ecc
multicall: add self_applet
2020-08-11 22:37:10 -06:00
Ariadne Conill
2be5add47b
multicall: split option handling routines out to multicall-options.c
2020-08-11 22:15:52 -06:00
Ariadne Conill
b817bdb999
multicall: move match_options to a common include
2020-08-11 22:12:37 -06:00
Ariadne Conill
b481db6c20
multicall: add support for unified option handling
2020-08-11 22:07:32 -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
58bc969bbb
ifupdown: only show granular locking errors in verbose mode
2020-07-29 03:18:12 -06:00
Ariadne Conill
ef3bdd79da
clean up locking-related errors further
2020-07-29 03:17:12 -06:00
Ariadne Conill
c71c01862d
ifupdown: make the locking errors more useful
2020-07-29 03:13:34 -06:00