OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 83... | Line 83... | |||
83 | json_add_int ttl "${ttl:-64}" |
83 | json_add_int ttl "${ttl:-64}" |
|
84 | json_add_string local $(eval "echo \$RULE_${k}_IPV6ADDR") |
84 | json_add_string local $(eval "echo \$RULE_${k}_IPV6ADDR") |
|
85 | json_add_string remote $(eval "echo \$RULE_${k}_BR") |
85 | json_add_string remote $(eval "echo \$RULE_${k}_BR") |
|
86 | json_add_string link $(eval "echo \$RULE_${k}_PD6IFACE") |
86 | json_add_string link $(eval "echo \$RULE_${k}_PD6IFACE") |
|
87 | json_add_object "data" |
87 | json_add_object "data" |
|
88 | [ -n "$encaplimit" ] && json_add_string encaplimit "$encaplimit" |
88 | json_add_string encaplimit "${encaplimit:-4}" |
|
89 | if [ "$type" = "map-e" ]; then |
89 | if [ "$type" = "map-e" ]; then |
|
90 | json_add_array "fmrs" |
90 | json_add_array "fmrs" |
|
91 | for i in $(seq $RULE_COUNT); do |
91 | for i in $(seq $RULE_COUNT); do |
|
92 | [ "$(eval "echo \$RULE_${i}_FMR")" != 1 ] && continue |
92 | [ "$(eval "echo \$RULE_${i}_FMR")" != 1 ] && continue |
|
93 | json_add_object "" |
93 | json_add_object "" |