diff options
-rw-r--r-- | templates/interfaces/bridge/node.tag/stp/node.def | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/interfaces/bridge/node.tag/stp/node.def b/templates/interfaces/bridge/node.tag/stp/node.def index 4d2e31b5..6f25f0cc 100644 --- a/templates/interfaces/bridge/node.tag/stp/node.def +++ b/templates/interfaces/bridge/node.tag/stp/node.def @@ -2,6 +2,11 @@ type: bool help: Enable spanning tree protocol default: false update: if [ "$VAR(@)" == "true" ]; then + if [ -z "$VAR(../../forwarding-delay)" ]; then + sudo brctl setfd $VAR(../@) 15 + else + sudo brctl setfd $VAR(../@) $VAR(../../forwarding-delay) + fi sudo brctl stp $VAR(../@) on else sudo brctl stp $VAR(../@) off |