Commit graph

599 commits

Author SHA1 Message Date
Ariadne Conill
ec6077f26f build: add CONFIG_YAML 2020-11-10 20:08:35 -07:00
Ariadne Conill
2a9ca329ff ifparse: add skeleton 2020-11-10 20:02:07 -07:00
Ariadne Conill
f6ad65d99e cmd: split out /e/n/i pretty printer from ifquery.c 2020-11-10 19:42:09 -07:00
Ariadne Conill
d250ab213c
Merge pull request #122 from ifupdown-ng/feature/configure-auto-executor-selection
Feature/configure auto executor selection
2020-11-04 21:53:42 -07:00
Ariadne Conill
f5fc3a3c1a ADMIN-GUIDE: document auto_executor_selection 2020-11-04 21:52:27 -07:00
Maximilian Wilhelm
748a226786
Merge pull request #124 from ifupdown-ng/feature/ifquery-virtual
Feature/ifquery virtual
2020-11-04 20:40:56 +01:00
Ariadne Conill
c8dad76fe1 tests: ifquery: add testcases for ifquery -U 2020-11-04 12:23:14 -07:00
Ariadne Conill
c7eeef27a4 ifquery.8: document -U/--allow-undefined 2020-11-04 11:59:19 -07:00
Ariadne Conill
52f739c943 ifquery: implement support for -U/--allow-undefined 2020-11-04 11:55:36 -07:00
Ariadne Conill
71d832cceb
Merge pull request #123 from ifupdown-ng/chore/narrow-dhcp-hostname-configuration
interface: learn hostname from uname(2) only if an interface requests…
2020-11-04 11:47:24 -07:00
Ariadne Conill
632af7b716 interface: learn hostname from uname(2) only if an interface requests the dhcp executor
Closes #74.
2020-11-04 11:46:18 -07:00
Ariadne Conill
af25cedf33 interfaces: note automatic executor selection algorithm here too (closes #117) 2020-11-04 11:31:08 -07:00
Ariadne Conill
c292297396 interfaces: s/option/executor/ 2020-11-04 11:27:41 -07:00
Ariadne Conill
5667b6adec ifupdown-ng.5: document auto_executor_selection and selection algorithm 2020-11-04 11:24:20 -07:00
Ariadne Conill
2d2e73b8ac example config: document auto_executor_selection setting 2020-11-04 11:21:42 -07:00
Ariadne Conill
068f464e4c interface-file: if auto_executor_selection is disabled, don't guess what executors should be used 2020-11-04 11:18:40 -07:00
Ariadne Conill
0050995b64 config-file: add support for auto_executor_selection setting 2020-11-04 11:16:47 -07:00
Ariadne Conill
20d9e3fe91 executors: drop set -e, closes #121 2020-11-02 08:53:30 -07:00
Maximilian Wilhelm
b76981e832
Merge pull request #120 from ifupdown-ng/chore/document-ifstate
docs: document ifstate
2020-10-26 16:31:50 +01:00
Ariadne Conill
8cae485ca7 docs: document ifstate 2020-10-24 09:00:26 -06:00
Ariadne Conill
6cadc44183 CI: install scdoc 2020-10-24 08:43:51 -06:00
Ariadne Conill
da751ce14d CI: enable CI tests for documentation 2020-10-24 08:42:26 -06:00
Ariadne Conill
dcbb3be15b doc: ifupdown-ng.conf.scd: escape the asterisk in compat_* 2020-10-24 08:40:49 -06:00
Ariadne Conill
19a5a671eb
Merge pull request #111 from ifupdown-ng/feature/deprecate-brctl
vlan aware bridging
2020-10-22 13:42:00 -08:00
Ariadne Conill
90453f1412
Merge pull request #119 from ifupdown-ng/feature/explicit-guard
guard auto and explicitly configured interfaces from inappropriate deconfiguration
2020-10-21 07:15:03 -08:00
Ariadne Conill
b4f87cbd1e state: explicitly check for explicit keyword when loading from the ifstate file 2020-10-21 09:13:34 -06:00
Ariadne Conill
2a8a72eee7 ifupdown: upgrade dependent interfaces to explicit interfaces if explicitly requested 2020-10-21 08:46:47 -06:00
Ariadne Conill
eb9bebebc6 ifupdown: record explicitly configured interfaces as explicit in ifstate 2020-10-21 08:42:47 -06:00
Ariadne Conill
61097b1db2 ifquery: when querying state, denote presence of the explicit flag 2020-10-21 08:32:29 -06:00
Ariadne Conill
b09d622cfc state: synchronize is_explicit from state records to parsed interface collections 2020-10-21 08:30:35 -06:00
Ariadne Conill
dae7d59864 state: write and restore explicit flag from ifstate 2020-10-21 08:29:54 -06:00
Ariadne Conill
4f7063ba0f state: add lif_state_record::is_explicit 2020-10-21 08:15:52 -06:00
Ariadne Conill
817262fa33 lifecycle: skip parent interfaces marked as explicitly configured when going down
these interfaces will be taken down by ifdown itself when appropriate
2020-10-21 08:11:45 -06:00
Ariadne Conill
b201f351ec interface: auto interfaces are always explicit 2020-10-21 08:09:21 -06:00
Ariadne Conill
9bcf914250 interface: add lif_interface::is_explicit 2020-10-21 08:06:59 -06:00
Maximilian Wilhelm
c810cd5817 doc: Add ifupdown-ng.conf(5) man page on global options.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 23:43:17 +02:00
Maximilian Wilhelm
e5d9ee25fc doc: Update bridge man page on vlan-aware options.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 23:25:42 +02:00
Maximilian Wilhelm
02a74985ab bridge: Rework vlan handling
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 21:29:50 +02:00
Maximilian Wilhelm
fb1d3181fe bridge: STP option for iproute2 has to be 0 or 1.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 21:28:10 +02:00
Maximilian Wilhelm
ab7b1f5d24 compat: Fix build failure.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 05:36:45 +02:00
Maximilian Wilhelm
480fc5eecb compat: Only create interface when configured to do so.
Add config option <compat_create_interfaces>:

  Denotes where or not to create interfaces when compat_* settings are
  active and it would be necessary to create an interface to be fully
  compliant.  This could happen when inheriting bridge VLAN settings to
  an interface within a bridges bridge-ports setting but no interface
  stanza is found.  Valid values are 0 and 1, the default is 1.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 05:14:03 +02:00
Maximilian Wilhelm
d86297f29c compat: Add glue for ifupdown2 bridge port VLAN inheritance.
Add config options <compat_ifupdown2_bridge_ports_inherit_vlans>.

  In ifupdown2 <bridge-vids> as well as the <bridge-pvid> set on a bridge
  interface will be inherited by all member ports if not set explicitly.
  When set to 1 ifupdown-ng behaves the same way and will internally copy
  both options from the bridge member ports if they are not set on the
  member port. Valid values are 0 and 1, the default is 1.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 04:58:23 +02:00
Maximilian Wilhelm
56beefdd28 ifquery: Apply compatibility glue, too.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 04:57:24 +02:00
Maximilian Wilhelm
a5761afd70 bridge: Remove fall back to IF_REQUIRES
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-18 03:28:20 +02:00
Ariadne Conill
05a3b1539b bridge: add support for bridge-vids (with inheritance), bridge-access and bridge-pvid 2020-10-18 03:28:20 +02:00
Ariadne Conill
03528b01ad bridge: remove hack for alpine vlan scripts (not relevant to us) 2020-10-18 03:28:20 +02:00
Ariadne Conill
3d743f512f bridge: add support for bridge-vlan-aware in iproute2 mode 2020-10-18 03:28:20 +02:00
Ariadne Conill
6c5d856ac4 bridge: remove support for gcint (noop in modern kernels), use iproute2 commands for all bridge configuration if present 2020-10-18 03:28:20 +02:00
Ariadne Conill
36eb6e3377 bridge: check if iproute2 is available and use it to configure bridge options 2020-10-18 03:28:20 +02:00
Ariadne Conill
e7ee26ac19 bridge: use iproute commands to create and assign bridge ports 2020-10-18 03:28:20 +02:00