Bug 58370 - Невозможно установить параметр max_age для сетевого моста
Summary: Невозможно установить параметр max_age для сетевого моста
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ip-brctl (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-25 16:53 MSK by Vladislav Glinkin
Modified: 2026-03-27 02:13 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladislav Glinkin 2026-03-25 16:53:09 MSK
Версия пакета:
	ip-brctl-0.2-alt1

Шаги воспроизведения:
	# brctl setmaxage br0 7

Фактический результат:
	set max age failed:  either "dev" is duplicate, or "max_age" is a garbage.

В функции cmd_setmaxage() забыли передать type bridge:
--- a/usr/sbin/ip-brctl  
+++ b/usr/sbin/ip-brctl  
@@ -405,7 +405,7 @@ cmd_setmaxage() {  
       check_float "${2}" "bad max age value"  
       err_dev_exists n "${1}" "set max age failed: No such device"  
   
-       exec_iplink "set ${1} max_age $(brctl_timeval "${2}")" "set max age failed"  
+       exec_iplink "set ${1} type bridge max_age $(brctl_timeval "${2}")" "set max age failed"  
}  
   
cmd_setpathcost() {
Comment 1 Repository Robot 2026-03-27 02:13:02 MSK
ip-brctl-0.3-alt1 -> sisyphus:

Fri Mar 27 2026 Alexey Shabalin <shaba@altlinux> 0.3-alt1
- Fix timer validation error texts.
- Fix delif error argument order.
- Tighten float input validation.
- Fix signed long range check.
- Fix hairpin slave option (ALT#58376).
- Fix boolean conversion in make_bool (ALT#58372).
- Fix setmaxage bridge attribute (ALT#58370).
- Align setgcint docs with implementation (ALT#58360).
- Fix addif validation (ALT#58359).
- Fix exec_iplink argument handling (ALT#58358).