From 5bf6c84464f5328f6bd5e587da45d26384b664fa Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 4 Aug 2020 13:18:36 -0600 Subject: [PATCH] add some helper stubs for split ifupdown1-addon setups --- executor-scripts/stub/bond | 5 +++++ executor-scripts/stub/bridge | 4 ++++ executor-scripts/stub/vlan | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100755 executor-scripts/stub/bond create mode 100755 executor-scripts/stub/bridge create mode 100755 executor-scripts/stub/vlan diff --git a/executor-scripts/stub/bond b/executor-scripts/stub/bond new file mode 100755 index 0000000..0548543 --- /dev/null +++ b/executor-scripts/stub/bond @@ -0,0 +1,5 @@ +#!/bin/sh +[ -z "$IF_BOND_MEMBERS" ] && IF_BOND_MEMBERS="$IF_BOND_SLAVES" +case "$PHASE" in +depend) echo "$IF_BOND_MEMBERS" ;; +esac diff --git a/executor-scripts/stub/bridge b/executor-scripts/stub/bridge new file mode 100755 index 0000000..ee1a442 --- /dev/null +++ b/executor-scripts/stub/bridge @@ -0,0 +1,4 @@ +#!/bin/sh +case "$PHASE" in +depend) echo "$IF_BRIDGE_PORTS" ;; +esac diff --git a/executor-scripts/stub/vlan b/executor-scripts/stub/vlan new file mode 100755 index 0000000..ba37599 --- /dev/null +++ b/executor-scripts/stub/vlan @@ -0,0 +1,7 @@ +#!/bin/sh +case "$PHASE" in +depend) + RAW_DEVICE="${IFACE%.*}" + echo "$RAW_DEVICE" + ;; +esac