Commit graph

704 commits

Author SHA1 Message Date
Maximilian Wilhelm
88f25e41c6 ifupdown: More specific error message.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-25 02:28:05 +02: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
fafce2f262 config-file: add missing default for implicit_template_conversion 2020-09-24 15:36:22 -06:00
Ariadne Conill
d177bfa553
Merge pull request #83 from ifupdown-ng/feature/alias-keywords-for-iface
inherit/template system improvements
2020-09-24 15:24:06 -06:00
Ariadne Conill
a55ef85776 doc: interfaces: describe template inheritance 2020-09-24 15:19:53 -06:00
Ariadne Conill
60d0ed34b8 interface: make interface-to-template conversion a config option (defaulting to enabled) 2020-09-23 19:07:52 -06: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
f224c04804 interface: explicitly convert any inherited interface into a template 2020-09-23 11:47:13 -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
580f054d7e lifecycle: do not allow lif_lifecycle_run() on a template 2020-09-23 11:39:45 -06:00
Ariadne Conill
94f00b2fdc interface-file: do not allow templates to be set as automatic 2020-09-23 11:38:29 -06:00
Ariadne Conill
41a71173d1 ifquery: display template interfaces as templates, not as iface 2020-09-23 11:35:27 -06:00
Ariadne Conill
5c5c316ebf interface: add config setting to restrict inheritance to template interfaces 2020-09-23 11:34:35 -06:00
Ariadne Conill
a3987b46c8 interface-file: mark interface as template if template keyword is used 2020-09-23 11:29:01 -06:00
Ariadne Conill
eb70e48ece interface-file: add interface and template keywords as alias for iface 2020-09-23 11:26:28 -06:00
Maximilian Wilhelm
850b20d5a8
Merge pull request #81 from ifupdown-ng/feature/ethtool
Ethtool support
2020-09-23 01:48:17 +02:00
Maximilian Wilhelm
0a0252d218 ethtool: Fix tests
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-23 01:43:25 +02:00
Maximilian Wilhelm
2e81234df1 ethtool: Call 'env' instead of 'set' to get environment
'set' will output environment variables with ' around them which will
  confuse ethtool.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-23 01:24:56 +02:00
Ariadne Conill
abc3b13fd7 Merge remote-tracking branch 'origin/master' into feature/ethtool 2020-09-21 10:23:04 -06:00
Ariadne Conill
566732321d tests: ethtool: add tests for coalesce settings 2020-09-21 10:21:43 -06:00
Ariadne Conill
3cb635b443 ethtool: set coalesce settings from ethtool-coalesce- term namespace 2020-09-21 10:06:58 -06:00
Ariadne Conill
f96cb273a0 interface-file: remap hardware-irq-coalesce- namespace to ethtool-coalesce- namespace 2020-09-21 09:56:48 -06:00
Ariadne Conill
a69c81b6be tests: ethtool: add dma ring tests 2020-09-21 09:38:39 -06:00
Ariadne Conill
3e7125aca0 ethtool: add support for the ethtool-dma namespace 2020-09-21 09:32:37 -06:00
Ariadne Conill
2078f63e62 interface-file: remap debian hardware DMA ring terms to ethtool-dma namespace 2020-09-21 09:30:12 -06:00
Ariadne Conill
c19def3764 tests: ethtool: add offload tests 2020-09-21 09:18:08 -06:00
Ariadne Conill
e8a2aab7e1 tests: ethtool: add tests for pause parameters 2020-09-21 09:10:40 -06:00
Ariadne Conill
6ae3414329 ethtool: fix up gather_params() calls a bit 2020-09-21 09:08:17 -06:00
Ariadne Conill
4e78d7e5d5 ethtool: pause parameters are IF_ETHTOOL_PAUSE_FOO, not IF_ETHTOOL_ETHERNET_PAUSE_FOO. 2020-09-21 08:59:13 -06:00
Ariadne Conill
0a58383ed8 tests: ethtool: add tests for basic link settings, wol and autoneg 2020-09-21 08:55:20 -06:00
Ariadne Conill
e4b4d8b70a ethtool: add pause and offload settings support 2020-09-21 08:39:25 -06:00
Ariadne Conill
72277e51e2 ethtool: add support for basic ethernet link settings 2020-09-21 08:31:20 -06:00
Ariadne Conill
b0480a3343 ethtool: add pre-up settings to the executor 2020-09-21 08:20:43 -06:00
Ariadne Conill
f7e7b4be85
Merge pull request #80 from ifupdown-ng/chore/batman-executor-scripts-opt
build: add batman executor to EXECUTOR_SCRIPTS_OPT
2020-09-21 08:06:48 -06:00
Ariadne Conill
eac42c104b build: add batman executor to EXECUTOR_SCRIPTS_OPT 2020-09-21 08:05:18 -06:00
Ariadne Conill
63ec8d4b3b begin ethtool executor-script (as part of EXECUTOR_SCRIPTS_OPT). 2020-09-21 08:04:10 -06:00
Ariadne Conill
a8fcf5502f add a missing translation 2020-09-19 09:20:14 -06:00
Ariadne Conill
27e11adac6 interface-file: remap properties used by both debian and ifupdown2 ethtool addons to the ethtool- namespace 2020-09-19 09:20:14 -06:00
Ariadne Conill
7bacb2a0f7
Merge pull request #79 from ifupdown-ng/chore/docs-no-multihoming
admin guide: s/multi-homing/multiple addresses/
2020-09-19 09:19:02 -06:00
Ariadne Conill
f35242e5c7 admin guide: s/multi-homing/multiple addresses/ 2020-09-19 09:14:06 -06:00
Ariadne Conill
f10faf953c
Merge pull request #78 from ifupdown-ng/feature/preferences
config file support
2020-09-19 07:16:38 -06:00
Ariadne Conill
d814aa754f config parser: explicitly skip over comments 2020-09-15 05:48:54 -06:00
Ariadne Conill
27a383cfa7 tokenizer: split out equals-as-delimiter tokenizer to its own function 2020-09-14 17:34:44 -06:00
Ariadne Conill
4b30dc4573 lifecycle: if lif_config.allow_addon_scripts is disabled, don't run addon scripts 2020-09-14 17:26:45 -06:00
Ariadne Conill
c1c9115e5d tokenize: fix tokenization of equals 2020-09-14 17:24:44 -06:00
Ariadne Conill
b4e35c442e multicall: load config file data as early as possible 2020-09-14 17:20:20 -06:00
Ariadne Conill
5b27d8408c config file: don't print warning if config file cannot be opened 2020-09-14 17:17:03 -06:00
Ariadne Conill
02d044c391 libifupdown: add config file loader 2020-09-14 17:15:18 -06:00
Ariadne Conill
fafa5ed7f9 libifupdown: add abstract config parser implementation 2020-09-14 17:11:59 -06:00