]> git.ipfire.org Git - network.git/commitdiff
bridge: Order arguments in alphabetical order
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Sep 2018 21:31:43 +0000 (23:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Sep 2018 21:37:32 +0000 (23:37 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/zones/bridge

index 1144ba062a0f64363c21afe135fff5416815c380..98aaef890997968238249ef06f4b9a55c9df01a0 100644 (file)
@@ -79,20 +79,20 @@ hook_parse_cmdline() {
                                fi
                                ;;
 
-                       --stp-hello=*)
-                               STP_HELLO="$(cli_get_val "${1}")"
+                       --stp-forward-delay=*)
+                               STP_FORWARD_DELAY="$(cli_get_val "${1}")"
 
-                               if ! isinteger STP_HELLO; then
-                                       error "Invalid STP hello time: ${STP_HELLO}"
+                               if ! isinteger STP_FORWARD_DELAY; then
+                                       error "Invalid STP forwarding delay: ${STP_FORWARD_DELAY}"
                                        return ${EXIT_ERROR}
                                fi
                                ;;
 
-                       --stp-forward-delay=*)
-                               STP_FORWARD_DELAY="$(cli_get_val "${1}")"
+                       --stp-hello=*)
+                               STP_HELLO="$(cli_get_val "${1}")"
 
-                               if ! isinteger STP_FORWARD_DELAY; then
-                                       error "Invalid STP forwarding delay: ${STP_FORWARD_DELAY}"
+                               if ! isinteger STP_HELLO; then
+                                       error "Invalid STP hello time: ${STP_HELLO}"
                                        return ${EXIT_ERROR}
                                fi
                                ;;