Commit graph

351 commits

Author SHA1 Message Date
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
58f010fe91 tests: Reflect latest link executor changes
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-04 23:54:40 +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
a59109cb66
Merge pull request #60 from ifupdown-ng/feature/wireguard
wireguard executor implementation
2020-09-04 12:31:13 -07:00
Ariadne Conill
acb555b75a tests: add wireguard tests 2020-09-04 13:10:57 -06:00
Ariadne Conill
f32481deb9 add wireguard executor script 2020-09-04 12:57:41 -06:00
Maximilian Wilhelm
471549db4b
Merge pull request #56 from BarbarossaTM/alias
link executor: Add support for interface aliases.
2020-09-04 09:20:15 +02: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
Ariadne Conill
2311316bfe
Merge pull request #55 from ifupdown-ng/feature/udhcpc-opts
add support for udhcpc-opts
2020-09-03 15:15:31 -07:00
Ariadne Conill
7edb29778b tests: add udhcp-opts related tests 2020-09-03 16:11:41 -06:00
Ariadne Conill
2d7668bc01 dhcp executor: add support for udhcpc-opts property 2020-09-03 16:07:27 -06:00
Ariadne Conill
4b32a0787d
Merge pull request #51 from BarbarossaTM/whitespaces
Remove leading whitespaces around interface attribute values.
2020-08-30 15:39:01 -06:00
Ariadne Conill
ab7ff2b206
Merge pull request #54 from BarbarossaTM/dummy
Only create dummy interface when missing and remove them on post-down
2020-08-30 15:38:32 -06:00
Maximilian Wilhelm
e854819e8f link executor: Delete dummy interface in post-down.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-30 22:38:58 +02:00
Maximilian Wilhelm
7d81ceb898 link executor: Only create dummy interface when not present.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-30 22:38:38 +02:00
Maximilian Wilhelm
64b24b02ed Remove leading whitespaces before interface attribute values.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-30 22:18:07 +02:00
Ariadne Conill
375b5d46cb
Merge pull request #52 from BarbarossaTM/scripts
lifecycle: Check if script dir exists before executing run-parts.
2020-08-29 08:38:16 -06:00
Maximilian Wilhelm
570679c5bf lifecycle: Make sure to return true when script dir doesn't exist.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-27 12:10:12 +02:00
Maximilian Wilhelm
61ed18db2c lifecycle: Check if script dir exist before executing run-parts.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-27 01:15:51 +02:00
Maximilian Wilhelm
1f21d2bb45
Merge pull request #50 from BarbarossaTM/link-type
Add support for dummy interfaces
2020-08-27 00:49:47 +02:00
Maximilian Wilhelm
8f3e1f06f1 link executor: Fix indentation.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-27 00:47:51 +02:00
Ariadne Conill
583ff684df
Merge pull request #48 from BarbarossaTM/vrf-fix
static executor: Use vrf-member when setting gateway if present.
2020-08-26 15:50:29 -06:00
Maximilian Wilhelm
e51ce613e6 link executor: Add support for dummy interfaces.
closes #49

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-26 23:05:28 +02:00
Maximilian Wilhelm
36fe61d8e7 link executor: Unify code paths.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-26 22:41:32 +02:00
Maximilian Wilhelm
e52e94fe5e static executor: Use vrf-member when setting gateway if present.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-08-26 22:29:59 +02:00
Ariadne Conill
d21d83fb26
Merge pull request #44 from ifupdown-ng/feature/link-hwaddress
link executor: add support for hwaddress option
2020-08-26 03:36:06 -06:00
Ariadne Conill
14914f1251 executors: use set -e consistently 2020-08-26 03:35:18 -06:00
Ariadne Conill
68415ce71d link executor: add support for hwaddress option 2020-08-26 02:22:30 -06:00
Ariadne Conill
e7ef2d1e83
Merge pull request #43 from ifupdown-ng/feature/phase-exec-messages
execute: note the phase each executor is being invoked in
2020-08-26 02:12:57 -06:00
Ariadne Conill
4d64176ea3 execute: note the phase each executor is being invoked in 2020-08-26 02:06:36 -06:00
Ariadne Conill
b30f84fdbd
Merge pull request #41 from ifupdown-ng/bugfix/link-back-to-up-down
Bugfix/link back to up down
2020-08-25 08:19:13 -06:00
Ariadne Conill
cca3608ad7 link tests: switch back to up/down from pre-up/post-down 2020-08-25 08:17:58 -06:00
Ariadne Conill
6c7c3f570d link executor: switch back to up/down phase 2020-08-25 08:17:58 -06:00
Ariadne Conill
b311293c6b
Merge pull request #40 from ifupdown-ng/bugfix/bridge-ports-none
bridge: don't generate dependencies for bridge-ports none
2020-08-25 08:10:26 -06:00
Ariadne Conill
0ff263a02a bridge: don't generate dependencies for bridge-ports none 2020-08-25 08:09:31 -06:00
Ariadne Conill
24d092ee46
Merge pull request #39 from ifupdown-ng/bugfix/skipping-interface-message-verbose
lifecycle: only print skipping interface message if verbose
2020-08-24 11:34:38 -06:00
Ariadne Conill
aefaaa7457 lifecycle: only print skipping interface message if verbose 2020-08-24 11:33:56 -06:00
Ariadne Conill
3997b6a952
Merge pull request #38 from ifupdown-ng/bugfix/vlan-complex
vlan and assorted fixes
2020-08-24 11:14:45 -06:00
Ariadne Conill
db5d2b8afd link tests: fix phasing 2020-08-24 11:08:42 -06:00
Ariadne Conill
b378305286 link executor: don't try to modprobe in mock mode 2020-08-24 11:07:40 -06:00
Ariadne Conill
de20e5f8a9 lifecycle: handle executors in reverse order when taking an interface down 2020-08-24 11:04:48 -06:00
Ariadne Conill
dfb979d00d list: add LIF_LIST_FOREACH_REVERSE() 2020-08-24 11:03:18 -06:00
Ariadne Conill
80cdfc7f96 link executor: use slightly different strategy for taking vlans down 2020-08-24 10:56:56 -06:00
Ariadne Conill
dc52642d73 static executor: default to metric=1 if not specified
this is needed to override learned routes if a gateway is configured
2020-08-24 10:52:10 -06:00
Ariadne Conill
8fe264a120 link executor: switch to pre-up/post-down 2020-08-24 10:47:16 -06:00
Ariadne Conill
aba4b18862 lifecycle: add some helpful debug 2020-08-24 10:36:17 -06:00