Commit graph

98 commits

Author SHA1 Message Date
Ariadne Conill
e7ee26ac19 bridge: use iproute commands to create and assign bridge ports 2020-10-18 03:28:20 +02:00
Maximilian Wilhelm
2d32b1577c bond executor: grep for options only once
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-11 03:28:23 +02:00
Maximilian Wilhelm
a67d518ea9
Merge pull request #101 from BarbarossaTM/feature/batman-options
Generalize B.A.T.M.A.N. .adv. option handling
2020-10-06 20:22:19 +02:00
Maximilian Wilhelm
13a8daf96e batman executor: Work around excution order limitations for now.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 05:17:48 +02:00
Maximilian Wilhelm
27a7201b45 batman executor: Generalize option handling.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 05:05:28 +02:00
Maximilian Wilhelm
332ea7c7d3 Stick to upstream naming of hop-penalty instead of interface penalty for hardifs.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 05:05:28 +02:00
Maximilian Wilhelm
59290415a0 batman executor: Allow settings the B.A.T.M.A.N. adv. routing algorithm
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 05:05:28 +02:00
Maximilian Wilhelm
5d6c7732ed static executor: Ignore errors while removing addresses
When having multiple addresses set from the same prefix they might/will(?)
  be configured as 'secondary' and implicitly removed when removing the
  non-secondary address. This leads ip complaining about not being able
  to remove the secondaries as they are already gone. So we ignore errors
  while deconfiguring addresses as they liked occur when removing a
  vanish address anyway.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 04:50:02 +02:00
Maximilian Wilhelm
5557804af9 static executor: Update executor to use env vars.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 04:43:12 +02:00
Ariadne Conill
df6835bd62
Merge pull request #98 from BarbarossaTM/feature/pointopoint
static executor: Add support for IPv4 'pointopoint' addresses.
2020-10-05 22:04:58 -04:00
Maximilian Wilhelm
6dc43a2bb4 Let's use "point-to-point" and map "pointopoint" to it.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-06 04:03:27 +02:00
Ariadne Conill
37299e312f
Merge pull request #87 from BarbarossaTM/feature/veth
Add support for veth interface pairs
2020-10-05 14:34:39 -06:00
Maximilian Wilhelm
9ee3a874d4 Add support for bonding / LAGs.
* Add a bond executor
  * Add mappings from ifupdown1/2
  * Add a detailed man page
  * Remove legacy compatiblity glue for setups with 'requires' only

  The current implementation has to work around the fact that member interfaces
  will be already up then the bond is created. This is simply done by downing
  them, adding them to the bundle and upping them again. This can possible be
  done in a nicer way after revisiting the ordering of plugin execution (#12).

  Closes #91

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-04 01:35:41 +02:00
Maximilian Wilhelm
67163c6561 static executor: Add support for IPv4 'pointopoint' addresses.
Closes #96

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-03 20:38:40 +02:00
Ariadne Conill
cc06712611
Merge pull request #94 from ifupdown-ng/bugfix/hetzner-ipv6-default-route-is-link-local
static: always associate default routes with $IFACE
2020-10-02 15:46:03 -06:00
Ariadne Conill
74b6f9487c static: always associate default routes with $IFACE
Hetzner uses link-local addressing for their default IPv6 route,
accordingly we should specify the device a route is associated with
so that it will use the correct interface.

Thanks to Devin Brown for reporting this issue.
2020-10-02 15:44:46 -06:00
Maximilian Wilhelm
68e08cae7e
Merge pull request #89 from BarbarossaTM/feature/vxlan
Add support for VXLAN interface
2020-10-02 22:36:22 +02:00
Maximilian Wilhelm
12b0872349 vxlan executor: Fix typo and remove code copied from link executor.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-02 03:06:22 +02:00
Maximilian Wilhelm
fef7c55270 link exectutor: Don't re-create dummy interface when present.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-02 02:29:39 +02:00
Maximilian Wilhelm
c6faf452b9 link executor: Don't complain about a vanished interface when downing it
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-02 02:29:04 +02:00
Maximilian Wilhelm
3f67b2137d Add VXLAN support
Add a vxlan exectutor as well as mappings from ifupdown2 parameters to ours.

  Closes #75

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-10-02 02:20:10 +02:00
Maximilian Wilhelm
3035627c93 link executor: Add dependency between veth pairs
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-25 22:07:10 +02:00
Maximilian Wilhelm
f708bb1465 link executor: Add support for veth interfaces
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-25 22:04:53 +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
3cb635b443 ethtool: set coalesce settings from ethtool-coalesce- term namespace 2020-09-21 10:06:58 -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
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
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
63ec8d4b3b begin ethtool executor-script (as part of EXECUTOR_SCRIPTS_OPT). 2020-09-21 08:04:10 -06:00
Ariadne Conill
67da195f9f
Merge pull request #62 from BarbarossaTM/batman
WIP: Add executor for managing B.A.T.M.A.N. adv. interfaces
2020-09-11 02:45:11 -06:00
Ariadne Conill
5d4e3699b2 dhcp: evaluate IF_HOSTNAME for shell fragments 2020-09-11 02:33:54 -06:00
Ariadne Conill
a7e27ffa2c dhcp: support IF_HOSTNAME, IF_SCRIPT and IF_CLIENT for udhcpc 2020-09-11 02:31:22 -06:00
Maximilian Wilhelm
0674a70c35 batman executor: Fix typo
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-10 00:50:24 +02:00
Maximilian Wilhelm
e02e495257 bridge executor: Add depend phase
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-10 00:49:32 +02:00
Maximilian Wilhelm
af94d760d0 Update executors to reflect new create/destroy phase.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-10 00:48:47 +02:00
Maximilian Wilhelm
35e03475e4 batman executor: Use create/destroy phases
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-10 00:40:57 +02:00
Maximilian Wilhelm
017a12760c batman executor: Only create/delete iface if (not) present.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-05 01:52:43 +02:00
Maximilian Wilhelm
be6ce3c319 Add executor for managing B.A.T.M.A.N. adv. interfaces
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-05 00:35:04 +02:00
Maximilian Wilhelm
aa3e94acf8 link executor: Make link deletion MOCKable again.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-05 00:18:43 +02:00
Maximilian Wilhelm
d24b4ab3e6 link executor: Make dummy creation MOCKable, too
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-05 00:15:26 +02:00
Maximilian Wilhelm
37a7d8f097 link executor: Make vlan disposal MOCKable again
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-05 00:15:01 +02:00
Maximilian Wilhelm
2e6b3ca1ff link executor: Better error message on conflicting link types.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-04 23:33:27 +02:00
Maximilian Wilhelm
a6b95d495c link executor: Only gather and set IFACE_OPTIONS on up.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-04 23:32:51 +02:00
Maximilian Wilhelm
0e5ec5b260 link executor: Refactor VLAN iface management
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-04 23:21:21 +02:00
Ariadne Conill
f32481deb9 add wireguard executor script 2020-09-04 12:57:41 -06:00
Maximilian Wilhelm
6805262a9b link executor: Add support for interface aliases.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-04 09:14:45 +02:00