mirror of
https://github.com/openwrt/packages.git
synced 2026-12-04 11:15:36 +04:00
keepalived: use section vrrp_script for option track_script
`track_script` and `vrrp_script` are both sections that run custom scripts which handle priority of a vrrp_instance. `track_script` is not supported by this uci implementation `vrrp_instance` was still trying to fetch config for track_script from section 'track_script'. After the changes, when listing track_script in vrrp_instance, it tries to fetch config from section `vrrp_script` which is supported. Signed-off-by: Rishabh <rishabhshah2005@gmail.com>
This commit is contained in:
1 parent
82f99e0815
commit
efed5cf1a6
1 file changed
+1
-1
@@ -434,7 +434,7 @@ vrrp_instance() {
|
||||
[ -z "$optval" ] && continue
|
||||
config_section_open "$opt" "" "$INDENT_1"
|
||||
for t in $optval; do
|
||||
config_foreach print_track_script_indent track_script "$t" "$INDENT_2"
|
||||
config_foreach print_track_script_indent vrrp_script "$t" "$INDENT_2"
|
||||
done
|
||||
config_section_close "$INDENT_1"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user