Signed-off-by: Steven Barth <steven@midlink.org>
local metric="$4"
local valid="$5"
local source="$6"
+ local table="$7"
- append PROTO_ROUTE6 "$target/$mask/$gw/$metric/$valid/$source"
+ append PROTO_ROUTE6 "$target/$mask/$gw/$metric/$valid/$source/$table"
}
proto_add_ipv6_prefix() {
str="${str#*/}"
local valid="${str%%/*}"
str="${str#*/}"
- local source="${str}"
+ local source="${str%%/*}"
+ str="${str#*/}"
+ local table="${str}"
json_add_object ""
json_add_string target "$target"
[ -n "$metric" ] && json_add_int metric "$metric"
[ -n "$valid" ] && json_add_int valid "$valid"
[ -n "$source" ] && json_add_string source "$source"
+ [ -n "$table" ] && json_add_string table "$table"
json_close_object
}