]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/hooks/zones/bridge
bridge: Add option to missing --stp-max-age=
[people/ms/network.git] / src / hooks / zones / bridge
index 98aaef890997968238249ef06f4b9a55c9df01a0..93a3a314d59a89a636380a631779e68549301a5d 100644 (file)
@@ -97,6 +97,15 @@ hook_parse_cmdline() {
                                fi
                                ;;
 
+                       --stp-max-age=*)
+                               STP_MAXAGE="$(cli_get_val "${1}")"
+
+                               if ! isinteger STP_MAXAGE; then
+                                       error "Invalid STP max age: ${STP_MAXAGE}"
+                                       return ${EXIT_ERROR}
+                               fi
+                               ;;
+
                        --stp-priority=*)
                                STP_PRIORITY="$(cli_get_val "${1}")"