From 685998422576c576f31e8d258342f7890f52313d Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Thu, 17 Aug 2023 08:17:50 +0000 Subject: [PATCH] Merge property setting to one function and a bit of bugsquashes, add mcast routing --- netdev.sh | 38 ++++++++++++++++++++++++++------------ router.sh | 22 +++++++++++++++++++--- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/netdev.sh b/netdev.sh index 166def3..73e696c 100755 --- a/netdev.sh +++ b/netdev.sh @@ -157,27 +157,37 @@ new_if_bridge() { new_link "$if" } -bridge_stp() { - local if="${1:?missing if}" - local state="${2:-1}" +bridge_property() { + local prop="${1:?missing prop}" + local if="${2:?missing if}" + local state="${3:-1}" + local downstate="${4-0}" - local sname="interface.$if.stp" + local sname="interface.$if.$prop" ifbundle "$if" "$sname" install -Dm644 <( - h_if "$if" + header_eb + header_if "$if" cat <