if __network_ifstatus "__addr" "$2" "['ipv6-address','ipv6-prefix-assignment'][*].address"; then
for __addr in $__addr; do
case "$__addr" in
- *:) __list="${__list:+$__list }${__addr}1" ;;
+ *:) __list="${__list:+$__list }${__addr}1" ;;
*) __list="${__list:+$__list }${__addr}" ;;
esac
done
json_add_array $1
json_close_array
- json_select "$1"
+ json_select "$1"
}
json_select_object() {
json_add_object $1
json_close_object
- json_select "$1"
+ json_select "$1"
}
_ucidef_set_interface() {
json_select_object $name
json_add_string ifname "${iface%%.*}"
- [ "$iface" == "${iface%%.*}" ] || json_add_boolean create_vlan 1
+ [ "$iface" == "${iface%%.*}" ] || json_add_boolean create_vlan 1
json_select ..
}
json_select_object switch
- json_select_object $name
+ json_select_object $name
[ "$enable" -eq 1 ] && json_add_boolean enable 1
[ "$reset" -eq 1 ] && json_add_boolean reset 1
json_select ..
json_select_object switch
- json_select_object $name
+ json_select_object $name
json_add_string $key $val
json_select ..